• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Wall collision

I have a problem, I did an object for collisions to put it in the walls (this object is solid) and in the action I did this when collide with the character, but when collide with the character, he slips to the right and when the wall is in the left, the camera don't stop shaking. What can I do to fix it, please?

1587740073576.png
 
Are you using speed and direction (or hspeed and vspeed) to move the character?
Yeah, I have 3 variables. 1 for hspeed, 1 for vspeed (up) and another for vspeed down because the animation for up and down are 2 different sprites. And for left and right is the same sprite, only changing the image_xscale
 

Nidoking

Member
Again, are you setting the variable "direction" or are you using some other, custom variable?

There's a point I'm trying to reach here and you're taking the longest possible route to get there.
 

Nidoking

Member
Then take another look at the event you posted a screenshot of. You're moving in direction "direction". If you're not setting that, what value do you expect it to have?
 
Top