how do i do spawn my player

Get help using Construct 3!

Post » Thu Aug 03, 2017 4:47 am

ok here is what i want
since im gonna have like 1000 space maps
i want the smallest possible code ever

from my main scripti would like to do on layout change spawn character ... but i cant seem to make it
anyone know how i could do it with only 1 event sheet for it ?
B
28
S
9
G
3
Posts: 136
Reputation: 3,775

Post » Thu Aug 03, 2017 2:24 pm

On start of layout: create object
Have that in a global event sheet and include the event sheet on every layout
B
22
S
6
G
2
Posts: 30
Reputation: 1,879

Post » Thu Aug 03, 2017 3:34 pm

ok i did forgot to add the mainscript to all maps XD
B
28
S
9
G
3
Posts: 136
Reputation: 3,775

Post » Thu Aug 17, 2017 2:33 am

another way to go would be to have a sprite named spawn#, and if then on trigger- spawn character @ "spawn"&Level with Level being a variable for which level you are currently on, or even add an event when the camera switches or whatever triggers the next level starting that creates the playersprite at specific locations. once again can use the level variable, and if level = x set spawn coordinates to x,y.
theres a handful of ways to do it, you seem like you have it figured out.
B
22
S
12
G
1
Posts: 108
Reputation: 2,774


Return to How do I...?

Who is online

Users browsing this forum: newt and 2 guests