Luke Pierson
Member
Hello! I'm making a game with randomized level generation using the tutorial by Heartbeast (link below):
The video is part 2 in his series, it's about collision with the randomized background walls. In the video, he uses keyboard controls for his player, setting them to variables (hspd and vspd) which allow him to collide with the background in his code; but I wish to use mouse controls for movement, which I've gotten to work just fine! To learn how to implement mouse controls, I watched the wonderful tutorial by Aerion (link below):
Now, both work just fine, but I really want mouse controls for this game and so I'll need to know how to code collision for the mouse movement with the background walls. And yes, I am using the exact codes for the mouse controls and level generation/collision from the videos. Any help would be greatly appreciated!
PS: If I can just make slight changes to Heartbeast's collision code instead of typing up a new one, that would be preferred!
The video is part 2 in his series, it's about collision with the randomized background walls. In the video, he uses keyboard controls for his player, setting them to variables (hspd and vspd) which allow him to collide with the background in his code; but I wish to use mouse controls for movement, which I've gotten to work just fine! To learn how to implement mouse controls, I watched the wonderful tutorial by Aerion (link below):
Now, both work just fine, but I really want mouse controls for this game and so I'll need to know how to code collision for the mouse movement with the background walls. And yes, I am using the exact codes for the mouse controls and level generation/collision from the videos. Any help would be greatly appreciated!
PS: If I can just make slight changes to Heartbeast's collision code instead of typing up a new one, that would be preferred!