***I would first like to apologize for the noob questions - still trying to learn this beautiful slice of software..
Ps - is there a "beginners" sub forum that I should be posting on - I'm starting to feel bad... lol
The Backstory -
So, I decided to make a small racing game to help me dig a little deeper into fusion.
(baby steps people, baby steps).
I'd love to have the player win money for winning races - but what do they spend that money on? UPGRADES!
So, I was thinking of starting with simple "engine upgrades", like a turbo charger, or performance exhaust, etc..
I figure the best thing would be to use Global Values, and create custom variables for the car that would define its stock performance..?
From there, alter those values accordingly (and subtract from player money) when one of the upgrades is purchased.
So...
I've created a small test app to try and work out my various values, and how I would like them to interact with each other.
I have 5 buttons - V4, V6, V8, V10, V12 (for the player to select what engine size they want) - all buttons set a Global Value "cylinder_count" to their corresponding numbers.
Based on the number of cylinders the car has, I would like to set other variables, like: "horsepower", "maxspeed", "zerotosixty", etc..
I have all of the Global Values of the car displayed to the right of my buttons - select an engine size, and the program displays the various performance values for the car.
The Question -
I wanted to be all tricky, and have the game come up with a random number for the horsepower, just to give a little variation..
For example, if you select a 4 cylinder engine, the game would give the player a horsepower value of between 100 and 225.
From there, the game check the horsepower value, and creates a maxspeed and zerotosixty based on that number.
Everything works well, with the exception of the horsepower - when the value is displayed, it is flickering through numbers super fast - like its continuously creating a new random value.
Not really sure why this is happening..
I created counters that display the various values of the global values I created.
I set them to "always set count to (name of random car global value here)"...
I have a feeling this is not the best way to have display items constantly update themselves? Better done with a fastloop?
Sorry again for the noob question(s)...
I greatly appreciate any help that you could lend!











Reply With Quote







