A
A
Anzorika2019-09-22 20:45:33
JavaScript
Anzorika, 2019-09-22 20:45:33

How to make a square jump onto a 2 - square?


Help please!)
you need the green square to jump onto the red one (like a hill)
Hill: the element you can jump on
is like a platform, if I'm not mistaken.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Rezanov, 2019-09-22
@MayorPlay

It is necessary to check if the player intersects with the object, if it intersects, then stop the player's movement towards the object.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question