Adding a rule to something that does not exist?!
charliehgreen
ArizonaMember Posts: 233
Yes, that was worded right.
My issue is...
I have a number "0" which is the score and it's the only actor because the other numbers are not needed. I only need the images of 1-9 because only the main actor "0" need the rule so it can change. (The code is in the picture)
But what I want to do it have the numbers do like a quick grow and back to normal size once the numbers change. Similar to how a lot of games have a quick jump on the score when it changes. Like a really fast growing bubble then back to the normal size. But it only does it when the score change.
Now how can I do that with only "0" being the actor?
My issue is...
I have a number "0" which is the score and it's the only actor because the other numbers are not needed. I only need the images of 1-9 because only the main actor "0" need the rule so it can change. (The code is in the picture)
But what I want to do it have the numbers do like a quick grow and back to normal size once the numbers change. Similar to how a lot of games have a quick jump on the score when it changes. Like a really fast growing bubble then back to the normal size. But it only does it when the score change.
Now how can I do that with only "0" being the actor?
Comments
Umm? When all conditions are valid / actor receives attribute / game.big (integer or index)
then in that rule / change attribute / self.big = false.
AFTER that.. Make your rules for 'touch is pressed' 'overlaps or collides' etc...
when actor overlaps or collides with actor of type '0' self.big=true.
Wrap in a timer. run to completion / change attribute / self.big=false.
Might help, sounds like you need to separate out your functions.
Do you drag in and edit separate instances of your actor '0' ?
--- Group ---
Interpolate X and Y size to whatever you want...
Taking .5 seconds to happen
Timer - After . 5 seconds
Interpolate X and Y size back to the original
Taking . 5 seconds to happen
--- End Group ---
This group would only be triggered when your adding to you're score value.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page