Create your own Interactive Fiction

ADRIFT - Interactive Fiction  
Home   |   News ADRIFT News RSS   |   Screenshots   |   Download   |   Games ADRIFT Reviews RSS   |   Forum   |   Help   |   Links
Welcome Guest Register | Login
Popular Games
Skybreak v. 1.4
InsideADRIFT #41
Magnetic Moon
Give Me your Lunch Money 2010
Yon Astounding Castle! of some sort
The Fortress of Fear
ECTOCOMP 2010
Starship Quest
Skybreak v 1.2
The Screen Savers on Planet X
 
Latest Forum Posts
Hiding direction pointers?
Walk-throughs
Formatting Text & Graphics Displays
Compiling for Mac and Android
Happy birthday, Lumin
EctoComp 2025 ready for entries
Happy birthday Myst
Hot IF topics
HAPPY BIRTHDAY NickyDude
Happy birthday Ardi
 
Latest Reviews
DRAM 321 Final
Goldilocks is a FOX!
Xanix - Xixon Resurgence
Finn's Big Adventure
Bug Hunt On Menelaus
Magor Investigates...
Classic Adventure
Private Eye
Roozden's Color Code Module
Wumpus Hunt

Make a donation

Cursor  Problem when displaying states with text variable help

Issue Type: Status: Priority: Date Submitted: Votes:
Bug More Info Required Low Tue 25th Mar 2014 1 vote Vote Up Vote Down
 
Found in version: Last Updated: Completed in version: Date Completed: Track Changes:
5.0.31.4 Thu 28th Aug 2014 Log In
 
Tue 25th Mar 2014 06:08
Tried this:

- Created a 'Button' Object. Gave it a on/off state and named the property 'Switch'.

- Created a variable called 'ButtonPress'.

- Created a text array variable with an array of 2. 'ButtonArray'. There's two '0's of different color in the array: a green '0' and a red '0'.

- When the player presses the button, (ButtonPress=2; ButtonArray(ButtonPress)), the green '0' appears because the button is now in an 'on' state.

- When the player presses the button again, the red '0' should appear because it's now in an off state.

- I followed the guide on wiki: Created 'push button' task that calls out two seperate tasks. One of the tasks checks to see if the button is off, otherwise, it turns the button on. The other task checks if the button is on, otherwise, it turns the button off.

- According the colored '0' being displayed, this change never takes place. May have to do with task priority?


This is either a bug or I'm missing something major! Should be pretty easy to test on your end.

 
Tue 25th Mar 2014 07:07
I found that is definitely has to do with priority in calling out the tasks. I can not find a way around this though... I'll post a comment if I do. :/

EDIT: Finally circled around the problem using an IF statement inside the 'ButtonPress' variable action.
 
campbellThu 28th Aug 2014 21:57
Can you send me an example please?
© 2013 Campbell Wild. All rights reserved. | Contact the Webmaster