Actor problem ://

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Hey,

what to do when I have a png of my actor ( animal), and the touch zone of my actor is much bigger than the "real" actor himself? If you don't hit the animal exactly and instead beside, it still gets touched...really annoying

thx

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    You have so make sure that the animal is taking up the whole space of your PNG file.
  • ExactlyGamingEGExactlyGamingEG Member Posts: 18
    When you put the touch zone on the screen you should be able to make it whatever size you want and just make it the size appropriate for the animal
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I want the animal to be touched in the game thats the idea.

    But refering to ExactlyGamingEG, is makes no sense if I chnage the size because then the animal in the picture itself gets just smaller, to make it more clear just imagine a invisible rectangle with an animal in it, but the animal does not fill the whole rectangle!

    Thats the problem...
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    How do you mean I should be able to make it whatever size I want... yes the whole image but not the part that I want to be touched.
  • LeanneLeanne Member Posts: 168
    i use a transparent hotspot layered in front of the animal, and make it a reasonable size (depends on your target audience and their fine motor skills).
    So
    1. Create an actor
    2. In Color, set alpha to 0
    3. change size to the touch zone size you want (e.g. 50x50)
    4. Create game.attribute.hotspot
    5. in animal actor, Spawn hotspot infront of actor at 0,0, create rule that if game.attribute.hotspot is true, then ...(e.g. then play animal sound).
    6. make sure you change attribute to false after animal sounds, so it can sound again, or in whichever space is appropriate for your app. if you want to disable hotspot after it is pressed, just destroy it.

    hope this helps.
Sign In or Register to comment.