Limited Movement *Certain amount of energy*
Hi
Here is a code for a certain amount of walking movement
[CODE]
//create event
Power=0
[/CODE]
^^That initates the var Power Maker sure it is a Capitial P else you will find yourself with an error due to power(x,n) being a function
[CODE]
//walking events
if Power>0
then
//walking movement here e.g x+=3
Power-=1
if Power<0
then
exit;
[/CODE]
Here is a code for a certain amount of walking movement
[CODE]
//create event
Power=0
[/CODE]
^^That initates the var Power Maker sure it is a Capitial P else you will find yourself with an error due to power(x,n) being a function
[CODE]
//walking events
if Power>0
then
//walking movement here e.g x+=3
Power-=1
if Power<0
then
exit;
[/CODE]
Labels: Novice

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home