The Final Leg…or Cube…or Whatever
Finally everything is almost completed for my presentation tomorrow. Actually I have really liked messing around in Vizard the past few days and it seems as though I’m getting the hang of it… all be it in a very clumsy way.
After many IF statements I have finallly managed to get the code to do what I want. Unable to use an ‘if position = x then play this’ line I used collisions and physics to make the ball drop onto the cubes and then use IF statements to change the properties of each cube from white to red and also play a sound.
It works pretty well and I have just about finished the reset function. Turns out I needed to create a function to position all the cubes and turn them white, call it during the script and then call it again when the ‘r’ button is pressed.
Coding was neither a weakness nor a strength but I’m learning, and learning the principles in one can help with aspects in another. So while I have been struggling with my PHP I think it may have inadvertently help me in Vizard.
Anyway, here are some screen shots of the (for lack of a better word) game.
Be the first to comment on this
RSS feed for comments on this post. TrackBack URL
Share Your Thoughts