How do I Grab one object..but only 1???

Get help using Construct 2

Post » Tue Jul 08, 2014 4:04 am

I m making some kind of game where the player have to go to pick some objects (pinn..) and put it in a certain place...the problem is that my player can grab multiple objects while is already holding one...the idea is to pick one and go to the place to deliver/put it....then go back and pick another one. From 1 on 1... :roll:

"Sucking Is the First Step to Being Sorta Good at Something"
B
2
Posts: 4
Reputation: 158

Post » Tue Jul 08, 2014 5:42 am

good timing for this question. I just got some great help regarding this kind of behavior. What you're looking for is "pick nearest". There is a demo capx file at the end of the first page. i'm still not comfortable with the technique myself, but it should address your problem. viewtopic.php?t=109112
B
59
S
9
G
1
Posts: 970
Reputation: 6,611

Post » Tue Jul 08, 2014 4:55 pm

Just off the top of my head, could you set a Global variable so that "push 'X', if (global variable) = 0 then pick up item and set Global variable to 1, else do nothing? The reverse logic would be used for dropping items.
Would something like that work?
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683


Return to How do I....?

Who is online

Users browsing this forum: max2612, Yahoo [Bot] and 26 guests