Forum rules - please read before posting.

Can't use variables with menu names

edited August 2015 in Technical Q&A
Hi there,

For a 3D adventure game prototype, we have a large scene where the player navigates and can click at different objects to have a close up.

For each close up, we display :
- a few contextual informations in a menu (in 3D space)
- a back button

---

I wanted a generic back button for all close ups.
I have a variable containing the name of the current close up menu (CurrentMenu, aka [var:0]), and I wanted that when you click on the back button, the menu called [var:0] get closed.

In short :

image

Unfortunately, I got an error saying : "Could not find menu of name '[var:0]'"

Question
Can it be used that way or am I messing something up ? 


Comments

  • Tokens don't work in that field.  However, AC has a parameter system that allows you to "genericise" any Action you like, which is much more powerful than just replacing variables.

    This tutorial should explain them for you, as does the Manual's section 5.12.
Sign In or Register to comment.

Howdy, Stranger!

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

Welcome to the official forum for Adventure Creator.