Facing forward - Jumping backward

By Utunnels:
Here's a script solution. You have to press jump first, then quickly press backward to do a backward hop. You have to make your freespecial2 animation the fake backward jump animation, or you can use another animation by changing the name in the script.

jumpmove 2

anim jump
delay 2
frame models/xx/jump1.gif
@script
void self=getlocalvar("self");
int index = getentityproperty(self, "playerindex");
int dir= getentityproperty(self, "direction");

if ((playerkeys(index, 0, "moveleft") && dir == 1)||
(playerkeys(index, 0, "moveright") && dir != 1)
{
changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL2"));
}
@end_script
delay 10
frame models/xx/jump2.gif
frame models/xx/jump3.gif

Read more: http://openbor.boards.net/index.cgi?board=scripthelp&action=display&thread=19#ixzz2FG3NfHbF

[attachment deleted by admin]
 
Back
Top Bottom