Researched. But still need help.
Ive looked over the spawning temps in GS. But I still can seem to get this to work right.
Here is a example image.
I want Actor1 to spawn from off screen and travel in a str8 line to the center of the screen. I want the actor to do this but do it multiple times from multiple positions off screen. If i can fiqure out how to make Actor 1 do this then I can rinse and repeat Actors 2-3 and change a few of their spawn times and travel speeds. But I cant get Actor 1 to do this.
Here is a example image.
I want Actor1 to spawn from off screen and travel in a str8 line to the center of the screen. I want the actor to do this but do it multiple times from multiple positions off screen. If i can fiqure out how to make Actor 1 do this then I can rinse and repeat Actors 2-3 and change a few of their spawn times and travel speeds. But I cant get Actor 1 to do this.
![Image and video hosting by TinyPic](/home/leaving?target=http%3A%2F%2Fi54.tinypic.com%2F30w8mrd.png)
Comments
When object reaches centre of screen set self.location to be random(1,4)
If self.location = 1
self.x = -50
self.y = random(-50,370)
If self.location = 2
self.x = 530
self.y = random(-50,370)
If self.location = 3
self.x = random(-50,530)
self.y = -50
If self.location = 4
self.x = random(-50,530)
self.y = 370
That will move the item to a random place around the edge of the screen.
In this situation, when the actor is at the centre if will move to the outside and then run a timer rule.
Because it re-runs the rule every time it changes to the outside, it will change the value of random time each time.
If you want multiple items to spawn at random times from one actor and have that actor with a rule saying random(time), then that will only generate it once.
each actor has it's own attributes for interval, and side. interval is how often it comes in, side is which side the actor is on.
i tried to upload a video, but iMovie is insisting on scanning my aperture library.
edit: here it is:
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left