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
Pete's Punkin Junkinator
Skybreak v. 1.4
Ectocomp 2009
The Sisters
Synonymizer
The Makeshift Magician
Return to Camelot
Escape to New York v1.1
Notebook Demo
Hold Breath
 
Latest Forum Posts
Belated happy birthday saabie!
Object groups?
Happy birthday Denk & Andrew
InsideADRIFT Back Issues
EctoComp 2025 GAMES RELEASED, ONE ADRIFT GAME!
Hi everyone
Happy birthday, David
Good advice from an IF Comp Winner
Hiding direction pointers?
Walk-throughs
 
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