Scrolling Inventory

rayneofsorrowrayneofsorrow Member Posts: 2
edited November -1 in Working with GS (Mac)
Ok, given I just got started yesterday, I think I'm doing fairly well with everything. My goal right now is to set up an inventory box that moves in from offscreen after you click on the inventory button. Now I've got up to the point that I have an attribute that represents the state of the box being true or false. When its true, if you click on the button, the box moves onto the screen. My problem is: When I try to set up the opposite of the action (namely if you click the button and the value is true, then the box moves offscreen) the whole setup doesn't work. When I click on the button, nothing moves one way or the other.

The button works if it doesn't have to close the box after its opened.

Any insight into what I should do?

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    likely your switch is off for your button. If you open GS creator and in the NEW+ section search for 'menu' double click the first one which is a template I made a while ago which I think is what you are trying to do.

    In it you will notice the button has a text value of 0 or 1 I use this just to show that the trigger is working and it is a good technique to use in your projects when setting them up to make sure your attributes are changing as you expect. Also take a look at the trigger rules and see if that matches what you had.
  • rayneofsorrowrayneofsorrow Member Posts: 2
    Perfect! Thanks a lot! I was going at it from a completely different (and apparently wrong) angle. I'll test it out now and see if I don't find a way to mess it up :D
Sign In or Register to comment.