creating a melee weapon system

Get help using Construct 2

Post » Tue Dec 11, 2012 4:14 am

Hi guys I need some help with a weapon system I would greatly appreciate it if I can get some help for :-)

Problem: I created about 4 melee weapons and when I try to pick one weapon up. It picks all of them up at the same time. (I can drop all of them too.

I basically set up the code like this:

Press down+ overlapping melee;
--subevent- instance 1     'set animation to crowbar
--subevent- instance 2     'set animation to sword
--subevent- instance 3     'set animation to bat
pick up flag false        'set pickup flag to true

pickupflag is true + overlapping weapon

(I would then do the subevents again but this time set the position of the weapons to the players hand.)

What is the best way of handling this? perhaps I am not using instances and sub-events correctly. Can someone explain the best method.           
Posts: 23
Reputation: 2,429

Post » Tue Dec 11, 2012 3:14 pm

How about if you use the condition "Pick by unique ID" instead of "Pick nth Instance"?

There has to be some sort of tutorial or example on how to use instances.
Posts: 46
Reputation: 3,036

Return to How do I....?

Who is online

Users browsing this forum: asha2cool, flemmig, manamage, SimoneT, sudeep98, supreme676 and 5 guests