Point and Click Game BASIC HELP please+thankyou

gtxviper03@hotmail.comgtxviper03@hotmail.com Member Posts: 0
edited October 2013 in Working with GS (Mac)
Hello,

I am in way over my head; horrible with code. Luckily the concept of the game is very simple.

I need to have a background, and many stationary actors on it which can be clicked and changed colors when clicked.
Essentially it is a red vs blue game. Once all the actors are the same color, that side wins.

So I can import a bg image, and an image for a red actor, and blue actor.

How would I go about setting the behaviors so that when one is clicked- it will change to the other?
And after the whole board is full; the game would need to show that level ended.


Also- is there a way to set a timer on the actors to change BACK to the original colored actor if not clicked for a certain period of time? i.e. in 10 seconds it switches back?


Thank you so much to anyone who can point me in the right direction. I've tried watching a dozen gscookbook videos and it's not answering the questions i need answered..

Comments

  • BellowBellow Bartender Member, PRO Posts: 227
    First of all read here. You will find good help from tutorials and welcome :)

    http://cookbook.gamesalad.com/tutorials
  • alarm656alarm656 Member Posts: 291
    use attributes. change color. For example:
    Actor receives event touch is pressed.
    change attribute
    self.color blue to 0.8
    self.color red to 0.8
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited October 2013
    Let's say your actor is blue and then is clicked/tapped and changes to red. You'd use the following rules to automatically change it back after 10 seconds (self.clickTime is a real attribute):

    When touch is pressed
         change attribute self.clickTime to self.Time
    When self.Time > self.clickTime+10
         change image [blue_image.png]

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

Sign In or Register to comment.