Help with Display Text / Spawn Actor required to pop up and then disappear until touched again

moxximoxxi Member Posts: 2
edited December 2011 in Working with GS (Mac)
Hi all,

For the life of me I can't figure this out, which means I have a very long, tough road ahead. :) I am making a point and click adventure game. When you click on something, I want a text box to pop up and say "You require this to open the door" or some other command. Then I would like it to disappear after a couple of seconds until the actor is touched again.

I have tried using the Timer command but it doesn't seem to work.

Here's how I've created it.

When you "touch" the door, I've created a Rule that spawns another actor called Text Box. I've discovered how to make the box appear transparent (which is awesome) but I cannot get the text box actor to disappear after a set time. As well each time you touch the door, another actor appears over top the old actor. I'd like to know how to stop that as well.

If anyone has any suggestions that would be much appreciated. I've googled, hunted the forums and watched countless hours of gamesalad tutorials and I still can't find the answer. I'm not even close to getting an inventory system working (which I'm sure is beyond my comprehension) so if you could be as hand-holdy as possible, that would be much appreciated as I'm clearly a little dumb.

Comments

  • SxarcisiousSxarcisious Member Posts: 45
    I would not use a Text Box actor. You can do this in your door actor..

    Make Rule for Door actor.
    When touch is pressed
    Display Text
  • calvin9403calvin9403 Member Posts: 3,186
    edited December 2011
    You CAN use a text box actor, do this

    Make an attribute disappear? Bool false

    When the actor overlaps or collide with the door, spawn the text box and change attribute disappear to true

    When attribute disappear is true, timer for 3 secs and change the attribute to false

    When attribute disappear is false then change the actor's alpha to 0

  • moxximoxxi Member Posts: 2
    Thank you very much both of you! I will try this guys, but I don't have a great understanding of the Boolean thing yet. That's most likely why I can't get things like this to work. What I should have also said is that because it's a graphic adventure, the room is a static image (of a hallway for example, with 2 doors) that's why I was using an actor box (placed over one of the doors so it was clickable). In that sense, I believe then I will have to use Calvin's way. I need to watch quite a few more vids about attributes as I don't understand them...yet.
Sign In or Register to comment.