How do I create a pick-up item system?

Get help using Construct 2

Post » Tue Sep 05, 2017 12:13 am

Hi guys,

I want to create a pick-up item system. Is very simples, i need to take the item in one point, leave in another, and pick-up the item leaved. I tried pin and unpin, but doesn't work.

Sorry for my english :lol: :lol:
B
3
Posts: 1
Reputation: 177

Post » Tue Sep 05, 2017 12:48 am

He there @pieve.

Try adding a variable to your pickup (for instance: "picked_up")

1) if pickup = 1
every tick-----> pin to player

2) player is overlapping pickup
on (button pressed) -------> set pickup.picked_up to abs(self.picked_up-1)
B
69
S
40
G
24
Posts: 356
Reputation: 18,314

Post » Tue Sep 05, 2017 5:27 pm

Hey @pieve!

How exactly would it work? Is the pickup done "on touch" or does you want it to be button activated? How do you pick the object up? How do you drop it? Is there a button for each action? Is it only one button that you hold while "grabbing" the object?

Cheers,
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
20
S
6
G
3
Posts: 637
Reputation: 3,776


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 26 guests