oosyrag's Recent Forum Activity

  • To make a sprite move in a random direction, give it the bullet behavior and set the bullet angle of motion to random(360).

    If you're building an ai for a battle royale... You're going to need a more detailed plan of how you want your ai to behave and the rules and constraints they need to follow.

  • The first thing that comes to mind is to use an array. For each object that has that timer running, push timer.duration-timer.currenttime, and the object's uid into an array. Sort the array to get his of the object with the lowest duration remaining.

    If they all had the same duration to begin with you can just push and remove the object uid directly into an array, first in first out.

    Or are they all on the same object? If you elaborated on your set up and how you are using the timers there may be better approaches. For finer control over timers you would normally use different tags.

    EDIT: Below is a better idea.

  • To associate an instance of one object with a particular insurance of another object, you should either use a container if they are always 1:1, or store the UID of the "parent/home" object in an instance variable of the object associated to it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I guess you are talking about letterbox scaling.

    construct.net/en/tutorials/supporting-multiple-screen-77

    Designing for "Scale Outer" mode is generally good.

  • How are you displaying your dialogue?

    Assuming you have something like set text to array.at(x), in that same event you would add the action to set animation to array.at(x,1).

  • On text created is a good idea, but only the text that was created is picked.

    Did you add a pick all text in that event?

  • I think the most straightforward and resource friendly way is a tiled background. No need to change it's size, just make it double the size of the viewport and move it by a multiple of it's source image's width when necessary.

    No need to bother with the wrap behavior either.

  • Is your animation named correctly?

    Is it in the correct object?

    Is the animation speed something besides 0?

    Is your event sheet linked to the correct layout?

  • Assuming it was a new project, if you didn't enable automatic backups, it's gone. Otherwise your previous save should be exactly where it was before.

    On the bright side, it was just an hour... There are many who have experienced much worse.

  • Here is an old commented example by user kriand that will work at any angle - 1drv.ms/u/s!Asn1IURKZWj8gTWyUBXqilplh8jG

    It was for bouncing sprites in an isometric view, but if you ignore the actual bouncing parts it has what you need to simulate an arcing motion from a top down view in any direction. It uses the bullet behavior for horizontal movement and the platform behavior for vertical.

    Basically you need to isolate the horizontal (x/y), from the vertical (z) movement. An easy way to do this is to use two separate objects, a helper base object, or shadow, that moves directly towards the target, and your actual object which follows an arc. The base of the object will travel in whatever direction you cast it in, and the vertical movement follows that base.

    To know when to stop, you can compare the y position of the object and it's base. When the object passes its base, that is when it has reached the "floor". You can see this in event 10 in the example. Instead of bouncing you would just stop the object/disable the movement behaviors there.

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 39 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 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
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies