Y
Yoo
Guest
HI, so I had some issues that you guys helped me with for this platformer I'm testing... So I thought, instead of just talking and describing the problems, why not upload the project and you guys can see it for yourself.
So basically, the point of this project is for me to learn platformer basics for some other future games and ideas. And... I've made it to work so it can stay within a room, move around, jump on platforms, change sprites...
The code for it all might not be perfect, and it's a bit messy, using different approaches and combining them together... But I like the result for what it is.
The only 'bug' that I am encountering is the Hero object (that name was given for obvious reasons) still seems to vertically collide with walls and platforms in certain instances as pictured bellow:
The same thing was happening with horizontal collisions, but I seem to have fixed that by removing 'x += hspeed;' from the Horizontal collision code. If I do the similar with the Vertical collision code and delete 'y += vsp;', the player won't jump at all...
So, if you guys want to take a look at it, codes and all, that would be awesome. Comment if something can be written better or simpler... But the point is I like it the way it is now. I like how it's moving, jumping, etc. The only thing I want to change, in the end, are the collisions.
Also check the Masking for sprites, if maybe something can be done about them as for the collision issue.
Here is the project download link:
http://www.mediafire.com/download/wqqupf69scddel8/A+Real+Hero.gmz
So, if you guys want to mess with the code yourself and upload it back, feel free to do so. If there is a problem with the file, please do tell, so I can reupload.
The controls are: A & D for movement; Space for jumping; Esc for exit.
Thanx.
So basically, the point of this project is for me to learn platformer basics for some other future games and ideas. And... I've made it to work so it can stay within a room, move around, jump on platforms, change sprites...
The code for it all might not be perfect, and it's a bit messy, using different approaches and combining them together... But I like the result for what it is.
The only 'bug' that I am encountering is the Hero object (that name was given for obvious reasons) still seems to vertically collide with walls and platforms in certain instances as pictured bellow:
The same thing was happening with horizontal collisions, but I seem to have fixed that by removing 'x += hspeed;' from the Horizontal collision code. If I do the similar with the Vertical collision code and delete 'y += vsp;', the player won't jump at all...
So, if you guys want to take a look at it, codes and all, that would be awesome. Comment if something can be written better or simpler... But the point is I like it the way it is now. I like how it's moving, jumping, etc. The only thing I want to change, in the end, are the collisions.
Also check the Masking for sprites, if maybe something can be done about them as for the collision issue.
Here is the project download link:
http://www.mediafire.com/download/wqqupf69scddel8/A+Real+Hero.gmz
So, if you guys want to mess with the code yourself and upload it back, feel free to do so. If there is a problem with the file, please do tell, so I can reupload.
The controls are: A & D for movement; Space for jumping; Esc for exit.
Thanx.
Last edited by a moderator: