Basket or Bucket...How to set collision for 1 direction only?

HugeGraphicsHugeGraphics Member Posts: 81
edited November -1 in Working with GS (Mac)
I couldn't find anything on the forum related. We are trying to develop a scoring system for a bucket or basket. For example, shoot something in the air and it only scores on the way back down. Hope this is clear. Thanks in advance.

Comments

  • design219design219 Member Posts: 2,273
    Interesting problem. I suppose one way would be to have the ball or whatever spawn an identical actor and destroy itself when it passes the "Y" height of the basket. The new actor could have a different tag from the original, and only the new actor tag could increase the score.

    There is probably a better way, but that just comes to mind.
  • HugeGraphicsHugeGraphics Member Posts: 81
    Thanks for the idea. I guess i might should note that the "bucket" will be moving.
  • KempProductionsKempProductions Member Posts: 139
    There is probably an easier way than this too, but if the bucket or basket is staying still, then you could always have an actor hidden behind it, with the length being the same as the buckets top, and very thin. And just set collision to it.
  • HugeGraphicsHugeGraphics Member Posts: 81
    i tried something similar tshirtbooth but it kept scoring even if i hit from the bottom and then it passed back through. ideas? Hope that made sense.

    Edit: worked Great mostly, but what if you don't want it to destroy the ball? And it scores/destroys when it hits the sides. Thanks
  • KempProductionsKempProductions Member Posts: 139
    I would just go with tshirt :p
    He's been here longer.
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    I noticed Joe has that going on his platform demo

    you jump up through the block labeled cloud but you land on it.

    Can't download though
  • ORBZORBZ Member Posts: 1,304
    On ball:
    when linear velocity Y < 0
    collide with basket
Sign In or Register to comment.