Problems/Questions creating a flare system
Posted: Mon Apr 09, 2012 8:13 am
Hi everyone,
I'm trying to create a flare system like one that a modern jet have.
It would work: User presses "X" -> Flares enabled (shot from the player-position at some points (math.random)) -> Flares for a specific timespan locked
-> After that span flares are available again
A flare is at the moment a filled circle with a radius of 4.
I tried it on many ways, but I got problems with the unique targeted point of a unique flare (unique positions of the flares, so a "rocket-pointing" system is possible).
I don't know how to handle the table with the coordinates where the flares are going to and how to go it one for one at different points, and not
all in one time.
I'm helpless, how would that be solved?
It would be very nice if someone explains a solution for that.
And sorry for my english, I hope it is understandable.
I'm trying to create a flare system like one that a modern jet have.
It would work: User presses "X" -> Flares enabled (shot from the player-position at some points (math.random)) -> Flares for a specific timespan locked
-> After that span flares are available again
A flare is at the moment a filled circle with a radius of 4.
I tried it on many ways, but I got problems with the unique targeted point of a unique flare (unique positions of the flares, so a "rocket-pointing" system is possible).
I don't know how to handle the table with the coordinates where the flares are going to and how to go it one for one at different points, and not
all in one time.
I'm helpless, how would that be solved?
It would be very nice if someone explains a solution for that.
And sorry for my english, I hope it is understandable.