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 Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    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.
  • VolontaArtsVolontaArts Member Posts: 510
    @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 Member Posts: 510
    @tenrdrmer how do i subtract the table cell? i can just put -1 behind it
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    you would use

    Change Attrbibute game.tablecell to game.tablecell-1
  • VolontaArtsVolontaArts Member Posts: 510
    edited August 2013
    i see... subtract the attribute.. ok will try now thanks

    @tenrdrmer
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    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.

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    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
  • VolontaArtsVolontaArts Member Posts: 510
    ah i see.. thank you @tenrdrmer for now its working how its suppose to!
  • joshiwujoshiwu Member Posts: 207
    edited September 2013
    instead of interpolate, you could use a timer with change attribute.
  • VolontaArtsVolontaArts Member Posts: 510
    instead of interpolate, you could use a timer with change attribute.
    timer instead of interpolate? not sure how that would work

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