This site requires JavaScript, please enable it in your browser!
Greenfoot back
W_JL
W_JL wrote ...

2019/11/28

Grabbing Weapons In A Top Down Shooter

W_JL W_JL

2019/11/28

#
so I want to grab a weapon and use it on my character. So I want to make the weapon dissapear after I grab (or should i say touched) it and make it appear on my character. I used if touching and then transparancy to 0 but with that code I can't make the weapon follow my character around because if I touched it. It will dissapear. Anyone got any idea on how to do this thing??
danpost danpost

2019/11/28

#
W_JL wrote...
I want to make the weapon dissapear after I grab (or should i say touched) it and make it appear on my character. I used if touching and then transparancy to 0 but with that code I can't make the weapon follow my character around because if I touched it. It will dissapear.
True that you cannot have it both disappear and appear at the same time. So ... why make it disappear at all?
You need to login to post a reply.