A top-down pick up, carry and throw engine prob
Hey. Basically, I'm working on a game, where you can pick up objects, carry them around, and throw them. Much like picking up and throwing vases/rocks etc in the 2D Zelda games. It works fine, except for one problem I'm having trouble removing. Essentially, if the player overlaps 2 objects and presses space to pick up, both objects are picked up. I don't know how to get rid of this glitch, as there are multiple copies of the same object (so I can't tell it to pick up one and ignore the other, or at least, I don't know how to).
I'd attach the mfa file, but I don't know how to...
Re: A top-down pick up, carry and throw engine prob
Hi Raylax. Use "Pick one of your Objects randomly"" for the same ojects over lapping.
Marvin
Re: A top-down pick up, carry and throw engine pro
Woo! Fixed =D
Thanks a lot for the help ^_^
Edit: Heh, new problem. I now have different objects for different boxes, all grouped by a qualifier (obviously so I don't have to remake the code for 3 different objects :P ). And the glitch returns if the boxes are different objects that are being overlapped...
Re: A top-down pick up, carry and throw engine pro
Can anyone help with this? Read edit in above post. Cheers.
Re: A top-down pick up, carry and throw engine pro
how do you define if an object is being carried?
you should when picking up an object save its fixed value in the player. And only the object with the fixed value of the players carrying value should be carried.
I suspect that you right now have a value on the box that defines if its being carried, do it the other way around!
Re: A top-down pick up, carry and throw engine pro
Nope, it's the character that has the value for whether a box is being carried or not. The only value the box has is how heavy it is, which currently plays no part in the coding (haven't got to that bit yet =P )
Re: A top-down pick up, carry and throw engine pro
Can't you just apply nivram's solution to the qualifier group?