-
Random question
Hey Guys,
I've got a question - i've been messing around trying to get it to work but no joy so far.
Basically, i have a active that "flys" from right to left at random intervals.
ie
---
every 5 seconds
+1 chances out of 3 at random
---
However..
What i want is for the active to randomly drop an item. Currently the only way I could do this was to have it enter a zone and drop an item. I however would prefer it to not always drop in the same place, everytime it flys across the screen.
I have 4 or 5 different power ups that it will randomly drop.
Firstly, i tried putting each power up as a direction. Secondly, I made 4/5 actives.
Now what i need to do - is randomly pick one of these items and then drop it at a random place across the screen.
I could probably muster something up as an example of what i have tried.. but its not working well (plus im at work).
So.. any ideas people?
Appreciate any response!
-
1 Attachment(s)
-
Quote:
Originally Posted by
King_Cool
Like this?
It was that straight forward !! Thanks I've given it a quick test and looks like it should be fine. Will stick it into my game later.
-
Thanks that worked (after a few issues) but its for left to right. how would i change it for the opposite ? (right to left)
edit: hmm not so sure now. Basically the item drops as soon as it enters the frame (or is created)
-
( Im assuming your not talking about the Aircraft Movement )
In the Event Editor, instead of going...
If DropCoordinateX_ > AircraftX
do...
If DropCoordinateX_ < AircraftX
-