"Battle Ship" style

joeheitz22joeheitz22 Member Posts: 5
edited November -1 in Working with GS (Mac)
Alrighty gang, working on a "battle ship" style picker game but with worms. I am wondering how to make that work. The player will be presented with the board (a patch of dirt with squares on it). The player will select one of the squares and it will either reveal part of the worm or nothing,

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Divide your worms into different actors - say 'head', 'middle' and 'tail'.

    Each of these would take up one square on your board.

    Position them where you want them to make a 'whole' worm.

    Have a rule that states:

    If actor is touched, then make its alpha = 1

    Otherwise, alpha is 0.

    Of course you'd need another rule to say 'if the player touches an empty space, then play a sound, and you'd have to include turn management in there (so that if you press the screen while the computer is guessing where your worms are, nothing happens).

    But I hope that gives you a helpful start!

    Cheers,

    QS :)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.