TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
How to make an actor respawn to it's same location after death
Pages:
1
How to make an actor respawn to it's same location after death
drxboxlive
Posts: 13
August 19, 2016, 05:34:09 pm
Just wondering if any one knows how to create this function. Thanks
noxtudios
Posts: 293
August 19, 2016, 05:37:25 pm
Before you kill the actor, if in a scene behaviour, save the X and Y position and store those values in scene attributes.
Then when you create the actor again, create the actor using those X and Y positions.
Or just pretend the actor is dead, by making it invisible, then make it visible again when you want to start with a new life etc.
Pages:
1