Gravity Please

How would you make gravity? I just want something to copy and paste. I’m making a platformer and that’s what makes it a challenge. Thank you!

hi @ANTHONY_VEGA-CARDONA
I have used this in pure javascript projects and I think it can be used in Wick by adjusting the speed in the update() function
https://www.w3schools.com/graphics/game_gravity.asp
I hope this helps
Note:
you will need some global variables. I would put these in the Load() section
These are defined like this…
project.gravity = 0.05;
project.gravitySpeed = 0;
// in the update() function under timeline…
project.gravitySpeed += project.gravity;
this.x += this.speedX;
this.y += this.speedY + project.gravitySpeed;

i use a really simple code that kinda sucks but it works. you put it in the character’s update tab and it looks like this: this.y+=50;

hope this works

There is a certain code and something weird for gravity,
but I’ve made my own gravity system a long time ago
(maybe last month), so feel free to use the code and you
could also see how the system really works if you delete
the Vcam for a wider view. Here’s the project:
gravity thingy .wick (69.8 KB)

( I first made the project as a template so I won’t need to
remake the “menu” and “credits” and these kinda buttons,
so it’s kind of a helpful project to have )