[SOLVED] How to create a ‘jumpscare’ and restart the game?

Yes you can do that, but what is the big difference with reloading?

It makes me lag
so I want to know how to teleport

That’s right. Is your jumpscare already working, because that’s where this topic is about?

kind of
I have an idea, player teleports into a box with jumpscare then teleports back to the start

1 Like

I just need the teleport code

Something like below.

playerEntity.rigidbody.teleport(otherEntity.getPosition());
playerEntity.rigidbody.teleport(0, 0, 0);

thanks!

A post was split to a new topic: Error reading ‘play’

I did the jumpscare! Is this what you were talking about?
https://playcanvas.com/editor/scene/1584526

Yes, perfect! You did so well that I was actually shocked too! :laughing:

2 Likes

@Brent_Reddick Great Job! Keep up the learning.

thanks!

1 Like

4 posts were split to a new topic: Hard reset project by accident