So I'm trying to use the list box object in my game, and I want to have whichever option chosen to change the value of a variable. Can anyone explain how I would set the events up for this, or are there any examples of this being done?
Should be able to do something like: Compare "ListBox.LineText(ListBox.CurrentIndex)" is Equal to "Testing text"
Edit:
Turns out I was wrong, CurrentIndex is when you're doing a for loop, here's a cap that works:
https://dl.dropboxusercontent.com/u/4714446/ListVar.cap
Develop games in your browser. Powerful, performant & highly capable.
I'm getting errors upon opening this file, could it have been made in a newer. older version? I'm pretty sure I have the newest release of classic.
pez263, ah you're likely on R1.2, the latest version (R2) was only available on the forums here: http://www.scirra.com/forum/topic48884.html
You can also go straight to the download page: http://sourceforge.net/projects/construct/files/construct/Classic/ConstructClassic_r2.exe/download