Tomycase's Recent Forum Activity

  • 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

  • Jump-thru collisions have been, let's say, a bit unconsistent since Construct 2, the way it checks for an object to pass through the object sometimes trigger in unintentional ways, I had to workaround an issue like this not long ago

  • Hey there, I made an attempt at these guys behavior last year, I got something relatively close to the real thing using Sine and Lerp() : drive.google.com/file/d/1EtxTcFN39Entc81_P59So03udENCxaIk/view

  • winkr7 solution works, you can also compare the distance from the center, and check if it's in-between two values to know if it touches the circle

  • Construct reads the events from top to bottom, so the order is important :

    A For loop followed by Trigger Once will run the loop and then trigger the action once per loop index, where the inverse will trigger the For loop once

Tomycase's avatar

Tomycase

Member since 3 Apr, 2016

Twitter
Tomycase has 6 followers

Trophy Case

  • 8-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

14/44
How to earn trophies