E
eyupp
Guest
I want to set up a timeline in my shmup that will:
- Spawn an obstacle
- Move that obstacle around the screen for a few seconds
- De-spawn the obstacle and announce that a new obstacle can now be spawned
I know how to get everything but the second point working. I don't want to add movement code to the obstacle itself because that would necessitate a new object for every variation of movement. Rather I want the timeline to move it. I was hoping there would be some moment range thing I could do (do X for moments 3 through 93 or something) but I haven't been able to find something like that, and making 90 individual moments all with exactly the same code seems tedious and cluttered. Is there a better way to go about this?
- Spawn an obstacle
- Move that obstacle around the screen for a few seconds
- De-spawn the obstacle and announce that a new obstacle can now be spawned
I know how to get everything but the second point working. I don't want to add movement code to the obstacle itself because that would necessitate a new object for every variation of movement. Rather I want the timeline to move it. I was hoping there would be some moment range thing I could do (do X for moments 3 through 93 or something) but I haven't been able to find something like that, and making 90 individual moments all with exactly the same code seems tedious and cluttered. Is there a better way to go about this?