creating a melee weapon system

0 favourites
  • 2 posts
From the Asset Store
JBoB Sound Studio AAA Quality Sound Effect "Weapon Master" Pack contain royalty-free stock sound effects.
  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)