RafaelMatos's Forum Posts

  • From the manual :

    By default, local variables reset to their initial value whenever entering their scope (usually every tick), like local variables in programming languages. If the variable is marked static in the Event Variable dialog it will persist its value permanently, like a global variable.

    Well, I've used local numbers before and it did not happen and wasn't marked static too. That's wierd.

  • I'm setting a value to a local number, but it keeps returning the initial value right after I set the new value, like less then 1 sec it changes.

    I had to use global number in order to do what I want, but it can't be normal. Since I've worked with local numbers before and this not happened.

  • Not only in a array loop but any loop you can set a value in a variable ON/OFF where you just get inside of a loop when it's value is "1" and then reset (inside the loop in a sub event if necessary) to 0, then the loop won't run again.

  • How do I save progress in a online game like experience, gold and itens using signalling server only? I think I can't save in computer's players because it would be easy to cheat and jump the progress path, as itens that is supposed to be difficult to get.

    The intention is to make a game with 3vs3 matches with a side progression, such as league of legends.

  • Looks very unique. Gratz!

  • Arlys

    Nice!I love Monsters Inc

  • Trying to create some nice character to my game, i'm still in the sketch stage though.

  • Thanks.

  • 7Soul

    I got it. Thanks!

    Just for curiosity...According to your example, I'd should create a rectangle in the hand's edge, right?

  • 7Soul

    So should I create the object with the same weapon's area and then destroy it when unequip it?

  • I've seen some ways of doing this, such as attaching sword to the player and setting the sword's angle.

    I don't want to use this method because wouldn't work well in a character with a good resolution, where u can see clearly the details with a bunch of animations.

    I thought I could do it using a different animations with weapons and no weapons. For exemple: Idle, idle_Weapon, Running, Running_Weapon, etc...

    This way I could explore more the animations quality but then I thought...How do I identify colisions properly if it's all the same thing?So, if I touch the enemy just with the sword, I would take damage.

    Thanks

  • czar

    Since the object won't ever be destroyed, I think picking UID isn't a problem. Isn't it?

  • I need to set diferent positions for several instances of the same object in a every thick condition.

    The thing is that I don't know how to identify each instance to set the position of each one correctly. Is there a way to do that?

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sine behavior do exactly what you want. You may work your events with this behavior. Pathfind is a good option too.

  • It's an event that swift values between shortcut bar (array) and an inventory (another array). This events below is picking, on double clicked, the value from inventory slot to shortcut bar. The mechanic is like this: Double Clicked> shows numbers(button) for each shortcut bar's slot> cliking on any of these buttons, the swift happens.

    The problem is that it's working, but only after the first time it runs. So the first time I save the value to the shortcut bar but the same doesn't happen to the inventorym which keeps it's original item (only in the first double clicked)

    Another problem that I really don't understand is that even the action running, the variable FoundItemTrade keeps -1 and I'm not setting this value again anywhere.

    Thanks!