/*var*/ //state_anim[0,0] = spr_man_down;there's a code like this in create event
what does mean ??....
can anyone explain ??
Posted 21 May 2012 - 02:15 PM
/*var*/ //state_anim[0,0] = spr_man_down;there's a code like this in create event
Posted 21 May 2012 - 02:29 PM
Posted 21 May 2012 - 08:03 PM
/*var*/ //state anim[0,0] = spr man downThis does absolutely nothing because it is a comment. Comments do nothing other than give info
var state_anim[0,0] = spr_man_down...also does nothing because you can't assign arrays to the 'var' function
var; state anim[0,0] = spr man down...does nothing as well cause the 'var' is not assign to anything and the spaces cause sooo much separation that they render errors.
var; state_anim[0,0] = spr_man_down...does the right thing. (except the 'var', since it's not assigned to anything it's useless)
Posted 21 May 2012 - 11:26 PM
Edited by TheouAegis, 21 May 2012 - 11:28 PM.
Posted 23 May 2012 - 05:58 AM
Sorry for late to reply.Uhh... this is a trick question, right?
/*var*/ //state anim[0,0] = spr man downThis does absolutely nothing because it is a comment. Comments do nothing other than give info
but this...var state_anim[0,0] = spr_man_down...also does nothing because you can't assign arrays to the 'var' function
and this...var; state anim[0,0] = spr man down...does nothing as well cause the 'var' is not assign to anything and the spaces cause sooo much separation that they render errors.
for this...var; state_anim[0,0] = spr_man_down...does the right thing. (except the 'var', since it's not assigned to anything it's useless)
You setting variable 'state_anim[0,0]' with the value of 'spr_man_down'
Posted 23 May 2012 - 07:56 AM
sprite_index = state_anim[0,0]; //you must be very precise about this
0 members, 0 guests, 0 anonymous users