Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by stillen

I'm looking for the best way to handle touch buttons. I have been using the touch-button plugin and it works great for "click like touches", but I think I need to account for slide your finger from button to button.

Is there a way to detect when you are touching a button, without firing a touch end event?

Like if I touch the jump button, then slide my finger over to the jump button without "untouching" the screen.

1 decade ago by Joncom

So you want to slide your finger from one button to another, and just have which button is being pressed change?

1 decade ago by stillen

Quote from Joncom
So you want to slide your finger from one button to another, and just have which button is being pressed change?


Thats the simple idea.


I noticed when playing the BioLab game 2 things that I would like to adjust in my game.

1- when you touch the direction arrow, and drag you finger across the screen, the dude still moves till you stop touching the screen. I'd rather the event stop when you slide outside the button.

2- Since theres no tactile feel on the touchscreen, I tend to slide my finger between jump and shot, but the wrong action happens or nothing happens.

I figure other people might have the same issue as I do and want to try to fix it.

1 decade ago by Joncom

I used this plugin to make this game, which, if you play on your phone or iPod, should demonstrate the following behaviour:

- Sliding onto the button activates the button's action.
- Sliding off the button deactivates the button's action.
- Sliding from one button to another switches actions.

1 decade ago by stillen

Quote from Joncom
I used this plugin to make this game, which, if you play on your phone or iPod, should demonstrate the following behaviour:

- Sliding onto the button activates the button's action.
- Sliding off the button deactivates the button's action.
- Sliding from one button to another switches actions.


That looks awesome, I will check out the plugin and game later tonight.

Thanks,
Page 1 of 1
« first « previous next › last »