Schyfis
Snippets
-
Purge an array of an object by Schyfis
I use this code in almost every game I make. It removes all instances of an object from a given array and returns a new array. Feel free to use it, it's really simple.
Save as Favorite | Tags: AS2, array, purge
-
Randomize by Schyfis
A really simple function that returns a random number between a given number and the negative of the given number. It's great for actionscripted game effects like positioning a ship's thrust. Basically, it saves you from writing random(x)-random(x) every time.
Save as Favorite | Tags: random, randomize, AS2


