Since multitouch isnt supported right now
I am wonder how its best to make a sprite
slide left and right along X axis
HI so I found this
*Mouse: Left button is down -> set X to Sprite.X+5
*Mouse: Left button is down -> set X to Sprite.X+50*dt
BUT how do I use this on my btn-triggers
Multitouch is supported, with two caveats:
1) The Touch.X and Touch.Y expressions only return one value, so only can ever return one touch
2) Android's browser doesn't properly support multitouch, but it should be fixed this month with the 'Ice Cream Sandwich' (Android 4) update. iOS should work fine though.
If you use sprites on-screen as touch buttons, then use the 'is touching object' or 'on object touched' events, multitouch should work fine (once Android 4 is out).
Develop games in your browser. Powerful, performant & highly capable.
I did find out how to use your 2. solution
BUT how do I use the Touch.X expression
Ive done this for scrolling background
player.X+100*dt ... moves right
BG.X-50*dt ... background moves left
BUT how do I stop the background when player
bounds the layout
<img src="smileys/smiley4.gif" border="0" align="middle" />