05-20-2014, 11:15 AM
good idea!
this is how the standing frames look now:
because variables like bdy_x don't get reset every frame, you can reuse them in following frames if they are the same.
means: in every standing frame you have the same body area -> you only need to define the area in the first frame and respawn the bdy in the other frames.
this combined with lots of default variables will save lots of code lines!
this is how the standing frames look now:
Code:
case 0: //standing
{
pic(0) state(0) wait(4)
wp_x=33
wp_y=45
wp_act=21
bdy_x=21
bdy_y=18
bdy_w=43
bdy_h=62
bdy_spawn()
break
}
case 1: //standing
{
pic(1) wait(4) centerx(38)
wp_y=47
bdy_spawn()
break
}
case 2: //standing
{
pic(2) wait(4)
wp_x=32
wp_y=45
bdy_spawn()
break
}
case 3: //standing
{
pic(3) wait(4) next(0)
wp_y=44
bdy_spawn()
break
}
means: in every standing frame you have the same body area -> you only need to define the area in the first frame and respawn the bdy in the other frames.
this combined with lots of default variables will save lots of code lines!