I want to go to the next level if my blocks are standing on each other

urban123urban123 Member Posts: 11
edited November -1 in Working with GS (Mac)
I have got 5 blocks. I can drag and drop these on the floor.
But how do I need to set for going to the next level if the stack is done?

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    could you have it so one block is the last one that needs to be placed on top (perhaps a certain color or shape block)? If so you could have a timer start when that block is moved and then have it check that only one block overlaps or collides with the floor.

    Or you could use magnitude to determine the distance between each block and the floor and each one would trigger an attribute that it is nearer the floor than the height of one block.

    Can they be stacked two side by side on the floor and others above?

    If you don't think either of the first two options will work can you describe your game play a little more?
  • urban123urban123 Member Posts: 11
  • urban123urban123 Member Posts: 11
    simo103 said:
    could you have it so one block is the last one that needs to be placed on top (perhaps a certain color or shape block)? If so you could have a timer start when that block is moved and then have it check that only one block overlaps or collides with the floor.

    Or you could use magnitude to determine the distance between each block and the floor and each one would trigger an attribute that it is nearer the floor than the height of one block.

    Can they be stacked two side by side on the floor and others above?

    If you don't think either of the first two options will work can you describe your game play a little more?

    In my game you need to stack 5 blocks.
    if one of the blocks fall on the ground the game resets.
    so how do i need to set in my game if the tower is standing right and there is no block fallen, to go to the next level?
  • urban123urban123 Member Posts: 11
    simo103 said:
    could you have it so one block is the last one that needs to be placed on top (perhaps a certain color or shape block)? If so you could have a timer start when that block is moved and then have it check that only one block overlaps or collides with the floor.

    Or you could use magnitude to determine the distance between each block and the floor and each one would trigger an attribute that it is nearer the floor than the height of one block.

    Can they be stacked two side by side on the floor and others above?

    If you don't think either of the first two options will work can you describe your game play a little more?

    i think i know what you mean with your first option.
    I have got 5 blocks in the upper side of the game but how do i set it that you can only drag and drop the first block for the first time and if this block is dropped than you can drag and drop the second block?
    If you could say me this than your option will work. because than i can make the latest block a little bit different from the others and if this block collides with the highest block then can i go to the next level if i follow your option.

    Cheers

    Cheers
  • urban123urban123 Member Posts: 11
  • urban123urban123 Member Posts: 11
    tshirtbooth said:
    What i would do is this

    stack all 5 blocks on the scene see where the top block is. Add a line there

    Rule when block overlaps with line
    timer after 5 seconds
    change attribute game.hitline to 1
    otherwise
    change attribute game.hitline to 0

    If game.hitline = 1
    round complete

    hope that helps.

    cheers

    _________________________________________________________________________________

    FREE YOUTUBE VIDEOS HERE
    Menu System #2 Template HERE
    Cover Flow and level unlock Template HERE
    Missile Command Template HERE
    Tiki Totem style template HERE
    Labyrinth TemplateHERE

    I will do that but i have another problem too.
    I want to make 40 levels but if I want to make the level more difficulty I need more blocks.
    and i can only bring 5 blocks along each other. how do i set in the game if i pick the first block that all the blocks move to the left

    Cheers
Sign In or Register to comment.