Is it Possible to Make Gravity?

Well, is there a script code that will allow “gravity” or “jumping?”
What I mean is, I want the thing to be like a side scrolling thing, and when the player pushes up, instead of looking up, they jump.

I also want to be able to control how high they can go. Is it possible? Can somebody post a code for it?

https://graal.in/t/no-decimal-points-with-random-a-b/10543

What is this?

Merged doublepost_______________

Can I have a code or something, and not a file?

When the up button is pressed, I just want the the player to move up, quickly slow to a stop, then go back down backwards. I also want them to be able to move in the air and stop when they hit something above them or hit a wall. When they push up, they don’t look up, but stay looking in the same direction.

The code is in the levels. Figure it out.

Ok, cool! But uh… How do I make it stop when I move to another level?

https://graal.in/t/update-level-script-command/11224

For the record, the search feature is at the top of the page…

well said

For the record, the search button never shows me what I’m looking for.

All you had to search for was gravity and that thread would’ve come up…

Gravity’s a toy for people who enjoy scripting as you have to sit there and modify it until it works right and nothing breaks. Even Shiny had trouble getting npc enemies to work right in his SMW clone, but it is possible since Beholder made a more advanced Cave Story clone.

Nobody has complete scripts like what you’re requesting, otherwise they’d be up on the server list and you’d be able to play them. Ideally you’d disable the default HUD and controls and then remake everything yourself. Best way to tackle a platformer is to first perfect a Tetris clone and master using functions, arrays, showimage, wall detection, and so forth.

Everyone should have just said no.

uhhh no…

EXACTLY

Problem was mostly with the fact that NPCs are locked in their levels so stopped functioning once they moved outside their level(which is problematic since Super Mario levels are very large and I had to use a large map to make one level).

Beholder basically coded a game in a game since he rescripted rendering and pretty much everything that Graal normally handles for you. Thus he was able to get past the limitations that Graal imposes.

So by logic, Graal sucks!?

AKA he cheated

As said as it is I think thats close to the truth unless shit gets a serious re-work.

no

Which is also blisteringly slow. I did a little cheat where I modify the tiles in the level to render multiple levels instead. It seems faster, but it gets exponentially slower as the size of the screen increases, as updateboard is fairly slow. It’s not anywhere near as slow as showimg’ing the whole level, though. That was a few months ago when I wanted to restart Mega Graal.