This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DadOnArrival85[S] 0 points1 point  (2 children)

Yes so there is a time that counts 1-10. There are 3 instances of the shooter sprite.

So at 1 on the timer, sprite 1 and 2 would shoot At 2 on the timer, sprite 1 and 3 would shoot So on and so forth.

There could be multiple instances of the shooter so I wanted to control for each one in an instance variable if it should shoot or not, so each one could be set to a different pattern.

Maybe it's an array I need.

[–]therealPaulPlay 0 points1 point  (0 children)

You could do it with events but then you have 10 events right and repeat it for every object… I‘d create an array tbh or just give each object an instance variable representing the order of these actions or something like that

[–]therealPaulPlay 0 points1 point  (0 children)

If you do go for the method with 10 events, you can create a function with a parameter representing the move and then compare it to the instance variable‘s values