Forum Discussion
ThaddeusAshclif
4 years agoCommunity Member
Dealing with large number of triggers/varriables and states - Using Cards
I've been thinking about using cards for a gamified activity. There are a few things that I would like some help with as the methods that I can think of are very inefficient.
Storing states....
MathNotermans-9
4 years agoCommunity Member
You can use text fields in Storyline as arrays... Here is an old sample of mine showing how you can setup a textfield in Storyline to act as an array.
https://360.articulate.com/review/content/2641479d-6c12-47a8-b741-f24d537a39de/review
When you showed some element of the array, its easy to remove with this code..so it never will show again.
var array = [1,2,3,4,5,6,7,8,9,0];
function arrayRemove(arr, value) {
return arr.filter(function(ele){
return ele != value;
});
}
var result = arrayRemove(array, 6);
// result = [1, 2, 3, 4, 5, 7, 8, 9, 0]
Related Content
- 10 months ago
- 4 months ago