toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Spawner Help
jehd1914
Member
Posts:
21
June 2010
edited November -1
in
Working with GS (Mac)
I need help with spawning new actors. I am using 320X480 and want actors to fall down from the top of the screen. What should the position be???
Comments
jstrahan
Member
Posts:
498
June 2010
X 240, y 160
jehd1914
Member
Posts:
21
June 2010
thanks!
jehd1914
Member
Posts:
21
June 2010
It's coming out of the same place! I need it so it comes out from the top at random places!
liao_chi_fu
Member
Posts:
13
June 2010
try x random(100, 400) and y 320. Make sure position is relative to the scene
design219
Member
Posts:
2,273
June 2010
You might need to make your Y a little higher depending on the size of you actor. The positioning will be based on the center of you actor, so if you actor is 40 pixels tall, you would want the spawning Y position to be 340 instead of 320.
Sign In
or
Register
to comment.
Comments