WhatPumpkin / Sburb-Legacy

An HTML5 engine for developing Homestuck walkabout sequences.
44 stars 21 forks source link

extending actionQueue to store data like a unique Id or calling sprite #149

Closed threonin closed 12 years ago

threonin commented 12 years ago

Calling an action with silent="name" should set the Id-property of the resulting actionQueue to that name, so it can be identified and directly addressed later. This could be used for stopping, pausing and continuing a single queue or adding a trigger referencing it. When using silent="true" a globally incremented number should be used as Id to avoid conflicts. Storing the calling sprite of a queue could enable referencing it in commands with "this" or canceling/pausing all queues from a specific sprite.

Gankra commented 12 years ago

performAction should return the id of the queue it ended up using when it completes.

Gankra commented 12 years ago

Or, perhaps, just the entire queue itself. This might be more flexible to future needs.

threonin commented 12 years ago

I will look into that tomorrow, now it is a little to late.

threonin commented 12 years ago

just deleted the branch I accidentally created on the main repo