toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Actor spawn in random place in direction to the center?
Cabaco
Member
Posts:
414
March 2011
edited November -1
in
Working with GS (Mac)
Ok so I already made actors spawn in random places but now I want them to when spawning, their direction has to pass in the center, HOW?
Comments
hackmodford
Member
Posts:
48
March 2011
Use the vector to angle (special expression thing)
Then you can just input the
vectortoangle(actors X - Center X, acotrs Y - Center Y)
That should point them towards the center I think...
Or you can just have them accel, or move to an X and Y position (plug in the center's X Y)
make sense?
Cabaco
Member
Posts:
414
March 2011
Thanks I will try that out!
Cabaco
Member
Posts:
414
March 2011
Another problem, how can I choose to an actor spawn or in the -10 position from width or in 330 all in landscape?
Cabaco
Member
Posts:
414
March 2011
Please help, I still cant do the spawn in direction to the center any help?
Sign In
or
Register
to comment.
Comments
Then you can just input the
vectortoangle(actors X - Center X, acotrs Y - Center Y)
That should point them towards the center I think...
Or you can just have them accel, or move to an X and Y position (plug in the center's X Y)
make sense?