1. #1

    Computer Scene

    Hey guys!

    So this is another thing I need help with on my piano/keyboard simon say's game. I need to create scenes of a computer showing what you have to do.. Anyone know how to set something like this up? I need it so that the icons I use freeze so that you can't move while the computer shows you what you have to do.. And there will be a few scenes obviously when the game gets harder and more complex so I need to be able to do the scene multiple times!

    Thanks Hazard
    Share this post

  2. #2
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Computer Scene

    hi

    if im understanding what your after...

    to disable the buttons use State Event Off targeting each button and to re-enable the buttons after the sequence is played use State Event On again targeting the buttons

    to create the game sequence use a Vector and set the size of the vector to the maximum number you want the sequence to get to, as memory is cheapish i'd just set it to 1000.

    each Index in the Vector will hold a value, this value will represent what button needs to be pressed for the sequence to advance
    so if the value is :-
    1 it could be Left Stick move Left
    2 it could be Left Stick move Right
    3 it could be Left Stick move Up
    4 it could be Left Stick move Down

    to set the values in the Vector use the Set Vector icon and in its properties uncheck Size 3, this opens up options for Index and Value
    Index represents the offset in the Vector to store the Value at, an Index/offset of 0 is the 1st memory slot in the Vector

    to read back the values from the Vector use the 'Get Vector' icon and in its properties you'll find Select Vector, point this to your Vector holding the game sequence and use the Index to reference the value you want to get from memory, again an index of 0 is the 1st memory slot. use get vector the same as any other number, it can be filtered or used in operators.

    all that's left is to keep track of the number of sequences stored in the game for the player to get to and the position the player is at in the sequence.
    just use a Variable Data Source for each, one that's incremented when the sequence is added to and another that is reset each round that tracks the player position in the sequence.

    displaying this is a matter of filtering the value at each step with delays.

    if you want this broken down further or need some clarification with vectors just holla
    Share this post

  3. #3

    Re: Computer Scene

    WOW! A million ideas just popped into my head. Thank you das!
    Share this post