Tomycase's Recent Forum Activity

  • Understood, thanks for the info!

  • I can't open the project, it says it doesn't recognize the format, does it requires the full version of C3?

  • Thanks for that method, but I found how to adapt winstreak logic for the engine needs;

    Thank you both for helping!

  • It's way more straight forward than that, each weapon have the same amount of max energy, and they recover energy all the same, but that's not the focus here :

    in your example, since index 3 =1, it contains the lowest value of the four indexes here, how would I retain that index from comparing the array values?

    Not sure I understand your example tbh

    EDIT : I think I get how your method works but not sure, I'll have to experiment with it, thanks for the answer ~

  • I am currently working on a Megaman X-type game, with multiple weapons, each having its energy gauge;

    When you get an energy pick-up, and your weapon energy is already full, it picks the weapon in the list that has the lower energy quantity and recharge this one instead;

    Until then I used objects by checking which one has its variable the nearest to 0, but I wanted to know if there is a way to do the same by comparing values in an array, and retain the X index of the cell that contains the nearest value to 0?

    Thank you for your time ~

    Tagged:

  • Use Platform behavior, on landed, set ball vector Y to a fixed negative value, so it will always bounce the same way everytime it lands

  • It's going to be hard to help you without screenshot of your code or a gif/video or the bug;

    If you're confortable enough you can share your file, that's the easiest way to proceed;

    Before doing that tho, check your sprite origin for this specific animation

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Mh, in that case using a sprite would be easier if the goal is to trap sprites into that area

  • Is it something you want to do with the canvas plugin?

  • Depending how you spawn those lines, you can use their IID (first instance is 0 and goes on) to determine which one was first, then IID 2 would be the opposite corner, then you proceed in two steps :

    Pick instance 0 to spawn the rectangle, pick instance 2, check the distance with the spawned rectangle and change its dimensions accordingly

  • You need to determine which instance will spawn the origin of the rectangle (let's say its origin is top left) and then pick the instance that represent the opposite corner, and stretch the rectangle by checking the distance between the two

  • I'll have to check your file first to see how it compares to the problem I had, this weekend I should have free time

Tomycase's avatar

Tomycase

Member since 3 Apr, 2016

Twitter
Tomycase has 6 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies