I have created a sentry enemy that fires at given intervals with the alarm variable however I feel like the alarms are too mechanical and mundane so I plan to set up an timer system as a creation code. I have a few ideas how to pull it off but the real trick is resetting the timer in the creation code to its original value to repeat the loop.
I plan to use the step event to call out the timer's value in the creation code and ticks down with every step there will be a if statement when the timer reaches zero it performs the firing and resets the timer again to repeat the process.
But the real question is can I really reset a value in a creation code and how can it be pulled off ?
*Note* the sentry I created is one object that uses a creation code value (index) to determine its appearance and the direction where its firing.
I plan to use the step event to call out the timer's value in the creation code and ticks down with every step there will be a if statement when the timer reaches zero it performs the firing and resets the timer again to repeat the process.
But the real question is can I really reset a value in a creation code and how can it be pulled off ?
*Note* the sentry I created is one object that uses a creation code value (index) to determine its appearance and the direction where its firing.