254
« on: August 17, 2012, 02:43:19 pm »
No problem, we are all still learning, i think stencyl has lots of potential.
Where the actor is created event add: -switch to animation (( random number 0 to 9 ) as text)-, name the animations like this: 0 for the 10% size, 1 for 20%... That should work, i guess you are not going to create animations for 100 possible sizes (that could result in lots of atlas just for the actor sprites), but just name the animations with numbers... Bear in mind that when stencyl 3 will be released the function grown to change the actor size and collision shape should work ok now its better to use that trick
For the points, again, theres many ways to do it, but the easiest one is to create an attribute like points in the main actor, make a behaviour or event for the blue, red etc objects, that says something like: using the collision.. When the object collides with the main actor, set atribute points to X for last collided actor (red colour label)
The main actor will have the number of points given by the last collected object
Ed