S
Shawn Hanna
Guest
Hey guys,
I've been following HeartBeast's tutorial on random level generation. Things have been going alright, but I've been stuck for a few days. Whenever I run the game, the player is able to move about halfway into the walls.
I can't figure out if it's the grid that is wrong, or if my move script is wrong. It's worth noting that the grid in his tutorial I think is 32x32, but mine is 64x64. I have a feeling something he did would only work with 32x32. Any help would be greatly appreciated, and if you need me to post a screenshot of the code I will.
My player's move code:
And the Level's create event:
I've been following HeartBeast's tutorial on random level generation. Things have been going alright, but I've been stuck for a few days. Whenever I run the game, the player is able to move about halfway into the walls.
I can't figure out if it's the grid that is wrong, or if my move script is wrong. It's worth noting that the grid in his tutorial I think is 32x32, but mine is 64x64. I have a feeling something he did would only work with 32x32. Any help would be greatly appreciated, and if you need me to post a screenshot of the code I will.
My player's move code:
And the Level's create event:
Attachments
-
289.7 KB Views: 17
Last edited by a moderator: