GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Can anyone see the problem in this rule? (picture)

photo ScreenShot2013-08-29at83526PM.png

i wanted the left trigger to interpolate down the table column... like theres 1,2,3,4,5 so i wanted to say when left is pressed...tablecell -1 but that didnt work.

the table just hold "real" numbers.... which are X positions i want the block to interpolate to. thanks guys, have a good night

Comments

  • tenrdrmertenrdrmer Posts: 9,934Member, Sous Chef, Senior Sous-Chef
    if you are going to do a table cell - 1 deal you have to make a game.tablecell attribute and set that as your row or column in the expression. you will also nee to add a change attribute somewhere that does the table cell - 1 part of the change.

    hope that makes sense.

    It's not my fault I never learned to take responsibility for anything. ;)

  • VolontaArtsVolontaArts Posts: 510Member
    @tenrdrmer yes it does... thanks...idk if im the only one...but i need to picture the attributes and rules working together before i can write it lol...and im still trying to picture it working. but it makes sense! thanks
  • VolontaArtsVolontaArts Posts: 510Member
    @tenrdrmer how do i subtract the table cell? i can just put -1 behind it
  • tenrdrmertenrdrmer Posts: 9,934Member, Sous Chef, Senior Sous-Chef
    you would use

    Change Attrbibute game.tablecell to game.tablecell-1

    It's not my fault I never learned to take responsibility for anything. ;)

  • VolontaArtsVolontaArts Posts: 510Member
    edited August 2013
    i see... subtract the attribute.. ok will try now thanks

    @tenrdrmer
  • tenrdrmertenrdrmer Posts: 9,934Member, Sous Chef, Senior Sous-Chef
    Correct you should be subtracting the attribute separate from the interpolate behavior that is using the attribute to define the row or column you are trying to reference.

    It's not my fault I never learned to take responsibility for anything. ;)

  • tenrdrmertenrdrmer Posts: 9,934Member, Sous Chef, Senior Sous-Chef
    You generally don't want anything in your interpolates that is not a fixed value. if you start putting in expressions that have changing values it really mucks up your interpolate moves

    It's not my fault I never learned to take responsibility for anything. ;)

  • VolontaArtsVolontaArts Posts: 510Member
    ah i see.. thank you @tenrdrmer for now its working how its suppose to!
  • joshiwujoshiwu Posts: 207Member
    edited September 2013
    instead of interpolate, you could use a timer with change attribute.
  • VolontaArtsVolontaArts Posts: 510Member
    joshiwu said:

    instead of interpolate, you could use a timer with change attribute.

    timer instead of interpolate? not sure how that would work

  • tenrdrmertenrdrmer Posts: 9,934Member, Sous Chef, Senior Sous-Chef
    Timers will certainly work but interpolate is always better on performance. Timers can suck up your RAM and should be avoided if possible.

    It's not my fault I never learned to take responsibility for anything. ;)

Sign In or Register to comment.