Random Spawn Location Help!
GameCre8tor
Member Posts: 49
Hi guys,
In my game I have a spawn point which spawns an actor. My map is 1,000px X 1,000px. On the spawn point I have a timer with a spawn actor behavior. The X location is "random(1,1000)" and the Y location is also "random(1,1000)
The problem I have is, almost all of the time that my actor spawns, it appears off of the game screen. Does anyone know how to fix this?
Thank you,
GameCre8tor
In my game I have a spawn point which spawns an actor. My map is 1,000px X 1,000px. On the spawn point I have a timer with a spawn actor behavior. The X location is "random(1,1000)" and the Y location is also "random(1,1000)
The problem I have is, almost all of the time that my actor spawns, it appears off of the game screen. Does anyone know how to fix this?
Thank you,
GameCre8tor
Comments
You mentioned your pixels are set to 1000x1000 max. Why? If it is for iPad that resolution is 1024x768. I assume this is a scroller type game in which case you want this spawn to be off screen perhaps?