Actors touch area

kentarosankentarosan Member Posts: 18
edited November -1 in Working with GS (Mac)
Hi all! I have just started today with Gamesalad, and I´m allready stuck T___T
I have created an animation by hand, and then colorized it with photoshop and export it to png, so it has transparent backrground.
When I put all the frames together is ok, the animation works well, I have put a rule to do another animation when the actor is pressed, and here comes my problem.
All the image can be pressed, even the transparent background. But i want only the actual draw to be pressed not all the square, the idea is to press only the character.
Can I make some kind of mask to tell the program where the player has to press to make the other animation work?

Sorry, but I been looking for this in the web, but couldn´t find anything, sorry if this question has been posted a lot of times! ^___

Comments

  • rlehmrlehm Member Posts: 320
    You cannot. Read other threads as a few down this was addressed. There's a workaround option posted. May work for you. In future, cut out all extra space that you can.
  • kentarosankentarosan Member Posts: 18
    Ok, thanks a lot for the fast reply. I was wondering if it where an option to do this that I was not seeing. I will have to think something else then...

    Anyway, I was as well wondering something else. Hope I can ask in the same topic fot a different question.

    Ok, the thing is, I have an animation where a character is coming from the ground, the ground and the character are in the same animation, the objective is to touch the character when he is out the ground, but not before.
    But doing it this way you can touch at any time once the animation starts. Can I tell the game to start the Touch rule at a certain point of the animation? for example from frame 4 to 9, but disable the touch option in the rest of the frames?
  • devjohnsondevjohnson Member Posts: 94
    kentarosan said:
    Ok, thanks a lot for the fast reply. I was wondering if it where an option to do this that I was not seeing. I will have to think something else then...

    Anyway, I was as well wondering something else. Hope I can ask in the same topic fot a different question.

    Ok, the thing is, I have an animation where a character is coming from the ground, the ground and the character are in the same animation, the objective is to touch the character when he is out the ground, but not before.
    But doing it this way you can touch at any time once the animation starts. Can I tell the game to start the Touch rule at a certain point of the animation? for example from frame 4 to 9, but disable the touch option in the rest of the frames?

    Try using an invisible actor to collide with instead of the whole animation, or just create 2 separate animations and set it so it can only collide when it's position is above a certain point y.

    It would be really convenient if there was alpha detection on collisions but unfortunately we do not have that ability yet with gamesalad. You not only have to be creative in thinking of a new game, but also how to code it with some of the limitations of GameSalad.

    Goodluck, the opportunities are very numerous!

    _____________________________________
    My Development and Tech Blog
  • StuartYStuartY Member Posts: 134
    To answer your first q:

    Try and draw square or circle things! It's ridiculous, but there it is. Here's an example I took from my Bad Archaeologist game:

    http://www.flickr.com/photos/63489541@N04/5850507375/

    All the stone blocks in this scene are rectangles in terms of collision. I wanted a greek style triangular top to my structures. That's hard/performance killing to achieve on GS. So instead, the top block looks like a triangle but also has a rectangular border. The pillars below are rectangles as well. Originally, they were straighter and more tapered. But I adopted pillars that bulge significantly in the centre, because, as you can see, the overall image is almost a rectangle with a couple of gaps. As a result, I can now hide hidden objects behind these pillars and the player is unlikely to find a situation where they can clearly see the object, but can't "reach" it with a tap because it's blocked by the pillar's alpha.

    GS's lack of alpha or even polygon collision is very restrictive, but this is coming in a future update apparently. Until then, you'll have to be really creative.
Sign In or Register to comment.