Can this be done?

Lets say I have a bag of marbles. They drop on the screen into a pattern. Can you use your finger to trace the pattern, whether its a line or a circle (like connect the dots), BUT also make it so if they touch a wrong marble (the input the pattern wrong), they lose.

If so, can anyone tell me how to do this? Thanks.

Chris

Answers

  • caiokawasakicaiokawasaki Member Posts: 68
    edited January 2013
    Lets say I have a bag of marbles. They drop on the screen into a pattern. Can you use your finger to trace the pattern, whether its a line or a circle (like connect the dots), BUT also make it so if they touch a wrong marble (the input the pattern wrong), they lose.

    If so, can anyone tell me how to do this? Thanks.

    Chris
    Sorry but my english isn't the best, can u try to explain better?
  • mrchris317mrchris317 Member Posts: 78
    Sure, lets say you have 4 objects on the screen. I want to use my finger to trace them (ike connect the dots) but I want to make it so that it someone traces the pattern wrong, they lose the game. So can you connect the dots, but also give them a way to mess it up/do it incorrectly? THanks.
  • SocksSocks London, UK.Member Posts: 12,822
    Sure, lets say you have 4 objects on the screen. I want to use my finger to trace them (ike connect the dots) but I want to make it so that it someone traces the pattern wrong, they lose the game. So can you connect the dots, but also give them a way to mess it up/do it incorrectly? THanks.
    What would constitute a wrong pattern in this context ?

  • mrchris317mrchris317 Member Posts: 78
    @sock. Lets say the marbles feel out in an order. The player would have to connect that order (kind of like memory, but with a drag/swipe motion instead of a touch). So if they trace the pattern wrong, I want to be able to make them lose. Hope that clarifies.
  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2013
    @sock. Lets say the marbles feel out in an order. . . .
    Nope, still too vague for me I'm afraid, sorry, I don't know what 'feel out in an order' means, hopefully someone else might be able to help out, good luck.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    If you show the marbles one after another with a slight delay in between and then ask the player to repeat the pattern by dragging through the marbles in the order they appeared, then sure. Just give each marble a self.Order attribute (index) and have it Change Attribute self.Order to game.Order (game.Order increments when you spawn a new marble) as its first behavior in the Rules list.

    Then as the player drags through a marble, check to see if game.DragOrder (game.DragOrder increments when you collide with a marble) is equal to self.Order.

    I also know someone who could help you or at least serve as inspiration: http://forums.gamesalad.com/discussion/42745/light-the-way.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • mrchris317mrchris317 Member Posts: 78
    Ok thanks, sounds good:) Appreciate the help.
Sign In or Register to comment.