Adding a rule to something that does not exist?!

charliehgreencharliehgreen 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?

photo ScreenShot2013-10-10at54528PM_zps54ddea17.png

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Well every time you change the image on the actor do your size bump too.
  • charliehgreencharliehgreen ArizonaMember Posts: 233
    @tenrdrmer but how, I've tried.
    :(
  • harrywatsonharrywatson Member Posts: 61
    umm? What about making a game attribute. Then a self attribute. Within a rule.

    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' ?

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited October 2013
    When you add to the score, also run a group of behaviors that Interpolates the size up and back down quickly. Something like:

    --- 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.
  • charliehgreencharliehgreen ArizonaMember Posts: 233
    I think @jamie_c post might work. Thanks to all for the help though, now to give it a go
Sign In or Register to comment.