[Help] Check if object is on another object

networnetwor Member Posts: 89
edited November -1 in Working with GS (Mac)
Hi, I've problem. I have a platform, and I can drag and put blocks on it. For example, I take 5 blocks a put it on platform. I need to check if they are on this platform. I try to do it with collisions, but if i put blocks on each other, they dont collide all, so I cant do this way... Can somebody help me, please?
Thanks!

P.S. Sorry for my English, I hope you can understand me :).

Comments

  • AlkagamesAlkagames Member Posts: 12
    here is the tutorial: http://gamesalad.com/wiki/how_tos:gsc_track_if_actor_is_over_another

    Spend a little time for the tutorials, videos, and demo. You will find almost everything you need to know. Good luck,
  • networnetwor Member Posts: 89
    Yes, thanks I read it, but I'm not sure, if it solve my problems. I try to explain it more detailed. I want to create a button, which will be active only if all blocks will be on platform. If I will have only one block it will be worked, but I need to check positions of more blocks....
  • alkagizealkagize Member Posts: 17
    i see, i used to have the same problem too... the over check target would only work when you have one target and one actor on the platform i guess. If you have one target and more than one block, then all the block will have to be on the target in order for it to track.

    Anyway, the way I tried to solve problem is that you will have to add as many targets for as many blocks you need. Another words, you have to have pairs like one target for one block and each block has to be on its own target.

    One more advice, if you need to check position, you could use the x and y position. For example, if actor1 xposition = 100, yposition = 200 then event is true. You could use this way to check as many positions as you need. Just give a specific x and y position for each actor.

    Hopefully someone will find a better solution.
  • networnetwor Member Posts: 89
    Thanks tshirtbooth, I try this way before, but i forgot to add overlaps with platform, I´ll try it... I think it will be worked! Thanks!
Sign In or Register to comment.