Chaser
Member
Having some teething issues, can't quite get my head around it, so looking for some pointers.
my character has an idle state, press jump button, when 'falling' the sprite changes to 'Fall state' with a 'Fall sprite'.
the fall state runs a script to change back to idle when the collision (hitting the floor) happens.
Now, my code works but only if my mask is nearly full, but when i change the mask to something shorter the code doesn't work, and cant figure out why? i wouldn't expect the mask to change the expectation of the collision, origin yes, which all sprites are set to 0,0. so perhaps it does? or am i missing something, an explanation would be great so i can think of a work around. the reason im changing the mask because i have a floor above the character and it keeps getting stuck in it.
thanks in advance.
my character has an idle state, press jump button, when 'falling' the sprite changes to 'Fall state' with a 'Fall sprite'.
the fall state runs a script to change back to idle when the collision (hitting the floor) happens.
Now, my code works but only if my mask is nearly full, but when i change the mask to something shorter the code doesn't work, and cant figure out why? i wouldn't expect the mask to change the expectation of the collision, origin yes, which all sprites are set to 0,0. so perhaps it does? or am i missing something, an explanation would be great so i can think of a work around. the reason im changing the mask because i have a floor above the character and it keeps getting stuck in it.
thanks in advance.
Attachments
-
69.8 KB Views: 6