Sliding Inventory Tray?
sawkastee
Member Posts: 184
I need some help with a scene. This landscape scene that has an inventory tray that slides out to reveal actors. If the user selects an actor in the tray it spawns a copy of the actor in the scene & the tray slides closed back to a small tab. The inventory tray slides out on a rule that is based on "if actor receives touch is pressed". However when my touch is released the tray closes before I can select an actor. How can I make the inventory tray stay open until 1) an actor is selected OR 2) inventory tab area (non inventory actor pressed) OR 3) the main scene area pressed?
Thanks
Thanks
Comments
That way you control when the tray is visible rather than it being dependent on when touch is pressed/released.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I probably didn't explain myself very well. I'm not making the inventory tray position based on touch position. The tray is always on the right side of the screen sticks out 64 pixels. When touch is pressed it opens. Unfortunately it closes after touch is released and I don't want that. I want it to stay open until 1) an inventory actor is selected OR 2) inventory tab area (64 pixel tab is pressed) OR 3) the main scene area pressed?
Here are my slider rules (inventory tray).
https://www.dropbox.com/s/lt7pew0e5xogniz/Screen Shot 2013-03-13 at 10.39.58 PM.png
https://www.dropbox.com/s/q187okc3dcw93wd/Screen Shot 2013-03-13 at 10.40.13 PM.png
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
ahhhhh.....i still can't get it. can you help me with this file?
https://www.dropbox.com/sh/hy4x99el8dnig9d/Szr5iNUx7U
Just click Revert to Protoype and you'll see it works much better.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User