Random = choose(1,2)
{
if Random = 1 then
object_index = Building1
if Random = 2 then
object_index = building2
}
image_speed = 0O.o it says "Cannot assign to variable"
Edited by mironic, 20 March 2012 - 07:48 PM.
Posted 20 March 2012 - 07:47 PM
Random = choose(1,2)
{
if Random = 1 then
object_index = Building1
if Random = 2 then
object_index = building2
}
image_speed = 0Edited by mironic, 20 March 2012 - 07:48 PM.
Posted 20 March 2012 - 07:49 PM
Posted 20 March 2012 - 08:36 PM
nevermind i figured it out XDYou cant change object_index
image_xscale = sign(Somethinggoeshere);?
Posted 20 March 2012 - 08:44 PM
if(direction div(180) == 0){
image_angle = 0; // right
}else{
image_angle = -1; // left
}
Posted 20 March 2012 - 08:50 PM
lol that dont work :|When an instance follows a path its direction variable is updated accordingly. Thus you can use the direction to set the sprite direction.
E.G.if(direction div(180) == 0){ image_angle = 0; // right }else{ image_angle = -1; // left }
Posted 20 March 2012 - 09:25 PM
Posted 20 March 2012 - 10:22 PM
She Moonwalks still... and only changes direction when moving up or down... not left or right...Change "0" to "1" and "image_angle" to "image_xscale".
Posted 21 March 2012 - 03:55 PM
if (hspeed != 0)
image_xscale = sign(hspeed)
0 members, 0 guests, 0 anonymous users