Hi,
I'm working on a platform game and I would like to make the player to change the animation when he's on the edge of a platform, like he's making balance not to fall.
Is this possible to do?
Thanks!
Easiest way would probably be having an invisible sprite at the edge and detecting overlap.
is ovelapping edge-detect - play balancing.
Develop games in your browser. Powerful, performant & highly capable.
I thought there would be another way so I don't have to add sprites.
no sprites..just one sprite..pin sprite to player image point(1?) ,, is is ovelapping edge-detect - play balancing.
,,,,,,
if you using sprites for platform (not tiledbackgraund)..
you can use ...Pick ovelapping point...
I see, I'm using sprites yes.
But I don't see any options in the events to do that like you said.
Could you please send me an example? or write here the expresions.
Hi gleegum
This is the basic idea....
Now you can check if player overlapping this points..or you can comape distance between player
and Platform image points...
capx:
http://s000.tinyupload.com/index.php?fi ... 8547969723
Thanks so much for the capx! Very useful!