How pick up gun etc

Get help using Construct 2

Post » Mon Nov 21, 2011 10:20 pm

I would like to place gun and then use it.
I had checked Space Jinx capx but there is a lot of another things that you ca ndo with artifact. I would like to pick up sprite and then use it as a gun.
Have you got any example ?

thanks
B
4
G
2
Posts: 48
Reputation: 1,328

Post » Tue Nov 22, 2011 12:00 am

Ok I made it using:
Set distance
If you have example or tutorial please publishmarcinkowski2011-11-22 00:06:03
B
4
G
2
Posts: 48
Reputation: 1,328

Post » Tue Nov 22, 2011 8:41 am

Isnt difficult I guess.

Global variable:
gun=0

event:
Player is overlaping gun
action:
set gun = 1
destroy gunsprite

event:
on pressing key "space"
add condition: every tick gun = 1...
action:
spawn bullet

Something like that I guess will work...
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Tue Nov 22, 2011 8:20 pm

TastyBytes, that look good, although he will not hold the gun. Use an imagepoint and this condition
if gun = 1
gun: set position to another object (player, image point 1)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Nov 23, 2011 9:54 am

Ok thats true sqiddster. I would solve this by changing the Player animation. Depends on the charakter sprite I guess.
B
14
S
2
G
6
Posts: 110
Reputation: 3,849


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests