is it possible

Hi Guys,
my screen is below. I want when i click 3rd ball (green ball), change image to 3,4 and 5 balls.
is it possible?
if yes, how can i?

Thanks



Image and video hosting by TinyPic

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I'm sure its possible. Though I dont fully understand what your asking.

    If you want to make one actor do something when another is touched. you just need a game attribute that changes to true when the actor is touched. Now all of your other actors need rules to do what ever you want the to do when that game attribute is true.
  • gamesfuagamesfua Member Posts: 723
    @tenrdrmer i wonder if he's looking to kinda make a connect 4 of sorts. Perhaps changing the inside green balls to all blue if tapped (and between two balls). Just a guess.
    @lobador can you explain that again? Can you step us through what you're hoping to achieve. Thanks! :)
  • lobadorlobador Member Posts: 23
    edited February 2013
    Hi tenrdrmer,

    i will try to explain my issue.
    Do you know "Bubble Shiny" game? i want make it. But my problem if i click the 3rd actor change 4. and 5. actors image. Because 3,4 and 5th actors have same color (green). when i play a new game green actors maybe placed 6,7,8,9. (actors placed to dynamic) I want change touched green and next to all green actors.

    am i describe??
  • lobadorlobador Member Posts: 23
    Hi anatomyofdreams,

    you are right :)
  • PBEmpirePBEmpire Member Posts: 676
    Nothing is impossible
  • lobadorlobador Member Posts: 23
    gsrockz123,

    "Nothing is impossible", i agree but how? :)

    we can not provide the script in gamesalad and nothing comes to mind how can i do without script.. I need change image to dynamicly actors but i have no idea for this :(
  • YaddaYadda PRO Posts: 18
    Here is a solution ..

    Define a game attribute as a boolean e.g. "SkipBalls" with value "false"

    Give the 3rd Ball (the green one), that you want to click, the following rule:
    If Ball is clicked, change attribute "Game.SkipBalls" to "true"

    And to every ball give the rule:
    If "Game.SkipBalls" is "true", move ball to self position + 3 * width of ball

    Please tell me if that's what you're looking for.
  • lobadorlobador Member Posts: 23
    Hi anatomyofdreams,

    What i'm looking for is when i click the 3rd ball (the green one) 4th and 5th also if there are more following green balls how can i recognize them?

    Secondly, how can i recognize if the followed ball which can be 6th and 7th are different color (6th:blue, 7th:green)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited February 2013
    You need a way to keep track of the color of each ball depending on where its located. A table is the most obvious place to do this. The trick is to change the value of a table cell (row, column) based on the position of the ball. If you are constraining your ball positions to exact grid coordinates, you can have a rule that changes the table value when the ball reaches such a position.

    Then you would have another rule that checks to see if there is a match/pattern. I haven't built a match-3 type game so I don't have exact rules for you but hopefully that's helpful.

    There are Match 3 templates available, such as this one:

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

Sign In or Register to comment.