Is this possible?

JoshuaBenoitJoshuaBenoit Member Posts: 24
edited November -1 in Working with GS (Mac)
Basically what I am wondering is if it is possible to have a player "scratch" the surface of the screen and reveal something underneath. Like scratching a lottery ticket. I could just have the actor destroy when touched but it wouldnt really fit in with the look of the game. Im wanting things to look clean and similar to scratching a lottery ticket to reveal whats underneath and Im hoping that I can achieve it smoothly, like the player can scrath a portion but leave the rest unchanged if they want to. If anyone has an idea, I would love to hear it. Thanks in advance.

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You could have a few scratched sprites and a timer to see how long they touch the actor for.

    So you could set it up if touch is pressed self.scratch is true and a rule if scratch is true self.timer = self.timer+0.1 then after a given time change the image.

    Hope this helps.

    Darren.
  • JoshuaBenoitJoshuaBenoit Member Posts: 24
    That helps a lot. It is similar to what i was thinking of doing but could not work out all the details. I will give this a go and see what happens. Thanks.
Sign In or Register to comment.