Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey all, was wondering if anybody could lend me a hand in Construct 2. I' trying to figure out a way to get the player sprite to teleport, but I can't figure out which events/behaviors I need to set up to make it happen, and Google isn't helping. I want the player character to touch a transparent sprite, which will be the 'stairs', and have it jump them to the location at the top of the stairs instead of having an actual climbing animation.

Any advice?

(1 edit)

hi! you'll likely test for a collision (or overlap, but a collision is a one-time fire). the event that would fire off would be a "set player position to object--i'd recommend creating some empty object(s) so you can move the the target points (and to see them visually in the editor!)around if you wish w/o having to change some hard number x,y values.

https://www.scirra.com/tutorials/509/movernos-a-ot...

I imagine it will be something similar to this tutorial, but without switching layers.

i made a very messy example here. perhaps you can streamline it for your own use.

explanation: when the player collides with the object, 'stairs' they are teleported to image point 1 of the stiars, which i set to the top right. taking them to the higher level.

I now have teleporting stairs! Yay! And best of all it only took three events to make it all work! Thank you for all the help!