Right now if your on the platform(branches)
and you press Down Arrow, he will flip upside
down. While Upside down if you press Down and attack
the squirrel will drop down....
this all works, which is great....but its based
on collision....when the squirrel collides with
the branch..var=1...when var=1 make gravity 0,flipsprite
if you look at lines 116-124
The issue that the way I have it set up..as soon as I collide with the
branch from underneath and press down it will start doing some wierd stuff....I am not sure how to have the 1 added to the var on when I land ontop of the sprite? even if it has a jump through behavior..
Will this work?
player.Y < branch.y
now will that affect each ones individual space...right now I have these branches everywhere... is this based off the individual points on the sprites...?
got it to work..thanks your a life savor.
<a href="http://s93.photobucket.com/user/spawn85027/media/lifesavor_zps3fc1b392.png.html" target="_blank"><img src="http://i93.photobucket.com/albums/l74/spawn85027/lifesavor_zps3fc1b392.png" border="0" alt=" photo lifesavor_zps3fc1b392.png"/></a>
Hey littlestain, so I got it to work but not sure why it works.
Is this based on the height of the sprite in pixels.. my player is 32 by 32....and my branches is 32 by 32...i dont get what Y point this is all going by...is it any y point on the sprite? well not sure why it works...if anyone can clarify line 27...i just want to know why something works.
Develop games in your browser. Powerful, performant & highly capable.
press down to hang....down and fire to drop down from hanging