View Issue Details

IDProjectCategoryLast Update
0010484Shattered HavenGameplay IdeaJan 27, 2013 5:25 pm
ReporterGameMaker24 Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Summary0010484: New script command: RepeatWhenFinished
DescriptionI have several immediate uses for this, so if it's not difficult to implement, I'm anxious to have it!

The following is copied from emails.

Zack:

Ever since you created AllowsNormalGameplay, I've had many awesome ideas where I would like such a script to call itself after all other lines complete. (There already exists a Call command.) Such events would be easy to implement and give the game vast amounts of personality and new puzzle scenarios.

However, I haven't tried this because I don't know if the previous instances of that script are released from memory. Would I be causing a whirlpool that drains the game's resources, or can I have the same sequence run over and over again until the player leaves the current sublevel?

Chris:

Actually that wouldn't really work, because the script would literally be calling the same object, and thus it would just wind up looping infinitely on the call script itself. This isn't something that is easily avoided with the current scripting model; however, if what you're looking for is a script that really just plays through one time, finishes, and then restarts rather than just stopping, I could add a condition for scripts that would let you turn that sort of thing on. Is that what you have in mind?

Zack:

Ah, it sounds like the script would keep trying to run even if you exited the sublevel. Yes, that would be an incredible condition to have!
TagsNo tags attached.
Internal WeightFeature Suggestion

Activities

Chris_McElligottPark

Jan 26, 2013 3:26 pm

administrator   ~0030259

* Added a new "thus far untested" script condition: REPEATWHENFINISHED
** When this script has finished running, it will start right over and run again.

New compiled version 631 with this and the other change.

GameMaker24

Jan 26, 2013 5:54 pm

manager   ~0030263

I tried it, but nothing happens. There's no error and only one iteration of the script.

Chris_McElligottPark

Jan 27, 2013 4:13 pm

administrator   ~0030305

I really need some sort of testbed for these sort of reports if possible.

GameMaker24

Jan 27, 2013 4:46 pm

manager   ~0030308

Oh -- sorry! I forgot to say that it's the single script in Ganan Fields, Main. (I don't intend for it to occur there permanently. It is just an experiment.)

Chris_McElligottPark

Jan 27, 2013 5:21 pm

administrator   ~0030311

Wow that is so incredibly cool!

* Fixed the bug with RepeatWhenFinished not working.

GameMaker24

Jan 27, 2013 5:25 pm

manager   ~0030312

:D

Issue History

Date Modified Username Field Change
Jan 26, 2013 11:42 am GameMaker24 New Issue
Jan 26, 2013 11:42 am GameMaker24 Status new => assigned
Jan 26, 2013 11:42 am GameMaker24 Assigned To => Chris_McElligottPark
Jan 26, 2013 3:26 pm Chris_McElligottPark Note Added: 0030259
Jan 26, 2013 3:26 pm Chris_McElligottPark Status assigned => resolved
Jan 26, 2013 3:26 pm Chris_McElligottPark Resolution open => fixed
Jan 26, 2013 5:54 pm GameMaker24 Note Added: 0030263
Jan 26, 2013 5:54 pm GameMaker24 Status resolved => feedback
Jan 26, 2013 5:54 pm GameMaker24 Resolution fixed => reopened
Jan 27, 2013 4:13 pm Chris_McElligottPark Note Added: 0030305
Jan 27, 2013 4:46 pm GameMaker24 Note Added: 0030308
Jan 27, 2013 4:46 pm GameMaker24 Status feedback => assigned
Jan 27, 2013 5:21 pm Chris_McElligottPark Note Added: 0030311
Jan 27, 2013 5:21 pm Chris_McElligottPark Status assigned => resolved
Jan 27, 2013 5:21 pm Chris_McElligottPark Resolution reopened => fixed
Jan 27, 2013 5:25 pm GameMaker24 Note Added: 0030312
Apr 14, 2014 9:30 am Chris_McElligottPark Category Suggestion - Gameplay => Gameplay Idea