1 decade ago
by stillen
I'm writing a new touch button plugging/entity because I want to be able to drag touch over the buttons to have their actions fire.
I was wonder if there is any advantage of writing this as a plugin instead of an entity? I have it working very well as an entity, but wasn't sure if I was missing any advantages of being a plugin.
1 decade ago
by Joncom
The advantage of writing a button as a plugin and not an entity is that you won't have a bunch of unused functionality associated with it. It's unlikely your buttons need collision detection and physics for example.
Personally, I'd still use entities though, because simply ignoring the unused entity functionality is easy to do, the performance is still quite good, and certain necessary functionality such as drawing is already in place.
1 decade ago
by stillen
I wrote my buttons up as both an entity and a plugin, just to see the difference and there doesn't seem to be much of a performance difference.
The only issue now, is my goal didn't work as planned. The buttons do work when you slide over them, but I was detecting the mouse input so mulittouch doesn't work. I 'm working on now using the touch events, but can't easily debug without putting the game on my iPhone.
1 decade ago
by Joncom
You could easily debug if you host the game on a WAMP server and then load up the game directly in your iPhone Safari app. And
this plugin will make your life easier.
Page 1 of 1
« first
« previous
next ›
last »