Sup 64 digits, I am doing stuff.
I have finally decided to get off my arse and continue working on this project I have been stuck on for 2 weeks.A while ago, back when I did a lot of GM stuff, I would have had this done in a day or two, but for the fact that I haven’t really done any engine stuff with it for a very long time, (only experiments and cool visual things), coupled with how my perfectionism level has raised significantly since then- meaning I will not accept any of the crappy solutions I may have come up with a year or more ago.I am working on a platform engine which has pretty much all of the features I can see myself needing (although starting off with the basics of course). So far I have got the ability to play the game with either a keyboard or an xbox360 controller (and have also set it up so that adding local multiplayer should be easy) which is something I have never done in GM before, but I am rather happy with the result.The problem however is slopes, the bane of every GMnoob (which I do not consider myself). I have created several platformer engines before that support slopes, but none that will support the current model.I have got to a point where I do not understand where I have gone wrong, so here I am, asking for help on something quite simple.Here is a link to the file, all of the problems are in the step event, highlighted…//VVVVVVVVVVVVVVVVVVVVVVVVVVV…like this//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^It is GM8.1 but I don’t know how to use LateralGM so sorry if you don’t have 8.1 :(You can press enter to change control schemeKeyboard:Left/right arrows - moveX - jumpcontroller:left stick - moveA - jumpOh, and i just found another problem, the game starts off with extreme lag. this seems to fix itself if you attach a controller, and then disconnect it. even if you don't change the control scheme. I have no idea why…
I was about to download then I saw that the file was a .gm81
:(Here is the exe, just so you can see what I am talking about
edit check the link again for the gmk:e
(I must fix my GM8.1's bugs.)I won't be able to open it either, but here's how I solve slopes in my game (hsp=horizontal speed, negative or positive depending on the direction):
Ah, i got LGM to work, uploading GMK version now, try the link again
Ok, for the climbing down slopes problem, I had forgotten to put abs(xspeed), but doing so still does nothing.
I'm totally proud of the current platformer I'm working on. If you have skype I'll talk with ya and give you some of my code ;D
(I just don't wanna share my stuff with the world quite yet.)Well, for one you're doing y + h instead of y - h. Although just changing that doesn't entirely fix it, but it helps.
and "move_contact_solid(270,abs(xspeed));" is bad. What if the player hits a ceiling? It'll teleport him down if that happens. Try 270 - 180 * (vspeed < 0) or something