WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-02-2010, 09:47 AM
jassel41 jassel41 is offline
Member
 
Join Date: Nov 2009
Posts: 24
Initializing/Changing Variables

I am currently working on a program for a learning video game for students. The scenario right now is that they see a traffic light blinking incorrectly and are supposed to input appropriate timing constraints for the light. For now I have the lights blinking on a timing loop where two are simply invisible if the other is on.

I want to give the students the option to change the value of the variable controlling these lights, but I do not know how to initialize a variable to one value and then be able to change it later without it conflicting with the initialization statement.

Can anyone provide any tips on how to start with a variable at one value and then be able to give the user control to change it if they want without being reset by the first initialization statement?

Thank you
- Jassel41
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Textures for Diffuse and Specularity Shader Issue shivanangel Vizard 1 05-11-2009 10:44 AM


All times are GMT -7. The time now is 04:46 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC