How do I equip a weapon from the ground?

Get help using Construct 2

Post » Sun Dec 20, 2015 5:00 pm

Hello there! I just downloaded C2 and wanted to try to create a little game, its just a normal platformer but with weapons.
When the game starts the Player doesnt have weapons, but there are some on the ground, and I want to equip them if the Player touches the weapon. How can I do that?

Many thanks!
B
5
S
1
Posts: 13
Reputation: 353

Post » Sun Dec 20, 2015 5:28 pm

Do you have animations of the player with the weapon, animations of the player picking something up, or do you just want to set the weapon to a point on the player and pin it?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Dec 20, 2015 6:02 pm

I just want to do it really simple XD just pin the image of the weapon on the image of the player! :) no animations
B
5
S
1
Posts: 13
Reputation: 353

Post » Sun Dec 20, 2015 6:14 pm

So something like:

First add an imagepoint to the player where you want the weapon to be
Give the weapon pin-behaviour

Player on collision with weapon
> weapon set positon : player.imagepointX(1), player.imagepointY(1)
> weapon pin to player
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Dec 20, 2015 6:25 pm

Thanks a lot for the reply!
I set the position of the weapon, but i cant find the action to PIN it to the player :/
B
5
S
1
Posts: 13
Reputation: 353

Post » Sun Dec 20, 2015 6:47 pm

Already done!! thanks again for the reply! have a nice day
B
5
S
1
Posts: 13
Reputation: 353


Return to How do I....?

Who is online

Users browsing this forum: Particle games and 7 guests