Is it possible to do this?
I have a game made with arcade physics.
It is a runner, with an underground wich needs to go up and down.
As in hills up and hills down.
I tried a lot of things, but did not manage to get it done right.
I tried making an physical body in a JSON file, arcade did not like it.
I tried making a physical body of a triangle, but it remains a rectangle as for arcade only uses rectangle and circle body’s.
I just want to import the matter.js and make an physical body on the ground wich the player collides with and if it runs on it, it wil go up and down corresponding to the body.
Here you can find my code:
I made a matter instance and there is in the background file a image called baan.
I want to put the physical body on this image.