toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Spawning characters in different directions?
allc1865
Member, PRO
Posts:
777
October 2013
in
Working with GS (Mac)
Hi. Is there a way to spawn characters to make them head straight and then make a turn?
Thanks.
Best Answer
jamie_c
ImagineLabs.rocks
Posts:
5,772
October 2013
Accepted Answer
Here is a little sample file to check out.
Answers
jamie_c
ImagineLabs.rocks
Member, PRO
Posts:
5,772
October 2013
You can put Behaviors in your characters to control them after they have been spawned.
Once they are spawned on screen, any Behaviors they have will take over and run.
allc1865
Member, PRO
Posts:
777
October 2013
How would that be set up?
In my spawn character, I just simply have a move behavior.
I also have a spawner that spawns the character.
jamie_c
ImagineLabs.rocks
Member, PRO
Posts:
5,772
October 2013
I guess you could use a Timer to control it, move it one direction for X number of seconds and then change the direction with another Move Behavior. The specifics all depend on exactly what you want to accomplish.
Socks
London, UK.
Member
Posts:
12,822
October 2013
quick play around with jamie_c's idea/file . . .
allc1865
Member, PRO
Posts:
777
October 2013
@Socks
, that's pretty cool...
allc1865
Member, PRO
Posts:
777
October 2013
@jamie_c
, thank you so much. This is what I needed!
jamie_c
ImagineLabs.rocks
Member, PRO
Posts:
5,772
October 2013
@Socks
, cool stuff.
Sign In
or
Register
to comment.
Answers
Once they are spawned on screen, any Behaviors they have will take over and run.
In my spawn character, I just simply have a move behavior.
I also have a spawner that spawns the character.