How to teleport a player up a specific distance (or down, left right)

To make things simple, i have 2 squares. One is a player and the other is just a square platform which the player jumps on. How do i make my player teleport, say, 100 pixels up if attribute player collides with square platform?
I want this rule to always be true that way i can use as many square platforms as I want with the outcome being the same, teleporting the player 100 pixels up.

Thanks for any help :D

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    In the player actor:

    When actor collides with actor [platform]
         Change attribute self.position.Y to self.position.Y+100

  • mypingo7mypingo7 Member Posts: 22

    Wow thank you so much :D

Sign In or Register to comment.