caiorosisca's Recent Forum Activity

  • Hmm, I don't think there's much you can do about it. If you need a variable for each resource you will need to do what you are currently doing.

    I don't think I can help you, but I see no reason for not using a dictionary for it, it's organised and not a bad practice to do it like that.

    Just pointing, even when you select the variable from the array you aren't referencing to it, just to the value.

    var1 = 1;

    Array> Set at XY> (0,0) var1; // here the value at array(0,0) is 1

    var1 > set value> 2

    //here var1 = 2, but array(0,0) is still 1

  • I don't really get what you are trying to do, but if you just want to link a resource to a value like

    metal: XXX

    wood: XXX

    cristal: XXX

    why don't you use a dictionary? Try explaining again what you want to achieve, I might be able to help.

    (please tag me in the response)

  • Your welcome, I just like the global object with vars, so I can keep things organized better. Global vars are a pain

  • I see your problem, I'm also very new to construct 2 and using bones animation sounded like a good ideia for me, unfortunatelly I haven't looked at it at all until now. I think as a solution you could pin it to the character and make it run an animation of itselft when you attack (just a quick workaround).

    About layout 2, to be honest I only had a glance at what it was, but haven't looked into it at all. Try making a new layout and copying stuff, so you can find what is bugging it.

    I'm quite sure there's nothing like rep or anything, no need for it tho.

    Have fun

  • Ok, here comes the big text.

    Basically I made a new EventSheet called SwordControl and put some basic stuff in there. I guess that will get you going, You can use my project and complete it with your other stuff.

    You were going to deep where there wasn't much need. Sometime it's simpler than you imagine.

    Something I wrote down while messing with your project:

    Sword > On animation "Throw" finished > Set animation to "Throw"

    This makes no sense. Just set the animation as a loop. (I did it)

    The variable SwordGone is the opposite of HasSword, so there's no need for both of them. It just complicates stuff,

    just use the inverse instead. ( So I deleted SwordGone).

    Collisions get all buggy when you change the polygon shape of an object (especially physics ones), you need to set a single

    collision shape for the whole animation.(preferably all the animations)

    Added

    On start of layout> Sword> Destroy (check SwordControl sheet)

    Change on collision with sword to overlapping (so in case I throw it at my feet, there's no need to move away and back to it).

    I'm using 2 variables to control sword pickup, canPickup is delayed by a half a second to be set to true after the release,

    this way it has time to leave the collision area with the player, otherwise you would pick it up right after release,

    meaning it wouldn't fly away.

    Removed the physics behaviour of the sword, there's no need for it as it already has Bullet behaviour with gravity.

    Also the Pin behaviour doesn't work well when used together/along with physics.

    That's it, let me know if you still need help. Read all the comments on the event sheet to understand what I did.

    ps: just tag me with caiorosisca in case you need an answers. Makes it easier to keep track of the topic.

  • Just so you know, I'm having a look at it and trying to solve your problem. Also cleaning it up a bit, so things are easier to understand.

    Will let you know if I get things working.

    Anyway I'll post the result here

  • Just use global variables.

    Or you can create an object that is global and add instance variabes to it.

    Global objects don't get destroyed when changing layouts. On a game of mine I have an sprite called Settings, and save all the settinsg as instance variables of that object.

  • I'm not really familiar with it, but I've seen alot of people recomend a specific camera plugin that allows zoom and some other stuff. Have a look at the plugins section. I can't tell you for sure which one it is. But you might find something usefull

  • your project requires a plugin, "scml", can you remove it or give us a link for download?

  • Made some modifications to your capx while waiting, check out if it helps you.

    (remove the space, i can't post links)

    dl.dropboxusercontent. com/u/39282664/doubleTap.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try explaining what exactly you are trying to do, I might be able to help

  • I did, and this is what happens

caiorosisca's avatar

caiorosisca

Member since 20 Jan, 2014

None one is following caiorosisca yet!

Connect with caiorosisca

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies