brushfe's Recent Forum Activity

  • I think it's easier to determine if the player's position when they collide with the hitbox.

    For example, if their Y coordinate is less than the enemy's top edge, that means they're beside our below it, and should get hit.

    Otherwise, the player is above the enemy, and can stomp on them.

  • Jeepers, this is incredible! Thanks a million for such a detailed and helpful explanation. I hope there's a way for other new learners to find this!

    This has really clarified a lot of questions and I'm super excited to get into it now. Thanks again, truly!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've been out of the loop with 3D, but I'd love to try it out - I just don't know where to start.

    There's some great example projects, but perhaps there's some tutorials or videos I should watch first to get the basics?

    The structure I have in mind is like the old MYST games, but with simple geometry - so a stationary camera with interactive elements and hotspots that let you move around the room.

    Thanks for any newbie guidance!

  • The clamp expression be helpful - it should let you limit the head's angle to the body's angle +/- some degrees.

    Something like: Set angle Head -> clamp(Head.angle, Body.angle - 10, Body.angle + 10)

    I might have this wrong, so check out the manual entry for more detail!

  • I think this is (still) not possible, though I know it's been requested many times over the years. It's definitely a core function that should exist, IMO.

    Unless I have it wrong, it looks like this has fallen off the list of feature requests with the shift to github. You should make a request there:

    github.com/Scirra/Construct-feature-requests/issues

  • It worked out!

    FWIW, I've also made a feature request for a non-JS version of this, in case any other non-coders would benefit from it.

    github.com/Scirra/Construct-feature-requests/issues/234

    Thank you both for the help and the JS crash course!

  • Thank you dop2000 and WackyToaster!

    I've tried both options here, but sadly neither are finding the animation.

    If you're interested, this is just the code I'm trying to use (both of your versions are here)

    drive.google.com/file/d/1uKcTWuydB0eFgoSZwgQ6uan-_foEcezp/view

    I think I've made a code mistake with getInstanceByUid(varUID), because it's returning errors in the console.

    This is likely all my error as I learn to use JS here, so if you see anything that could help, I'm all ears. Thank you again!

  • Right! I've got it integrated into the event sheet, but I can't yet get it to find the animations. I'll keep at it, thank you!

  • Thanks very much dop2000!

    Is there a way to use this code (or any JS) as a condition? I'm new to JS in Construct, and I can only find a way to use JS as an actions.

  • Oh I see, my misunderstanding. I didn't realize the template's z-order wasn't maintained in replicas, that makes total sense!

  • Is this the kind of thing that could be solved by dynamically-created global layers appearing just as they look in the editor?

    If this was possible, could you make a global layer for tilemaps, monsters, etc., and then spawn the layers to create a room?

    There's a feature request about this here:

    github.com/Scirra/Construct-feature-requests/issues/84

  • I have a family of sprites that have some shared animations, and also some unique animations.

    Is there a way to check if a sprite has a particular animation? (so that I can do something else if it doesn't?)

    There doesn't seem to be any sprite object conditions, but maybe there's something in JS or otherwise?

    (The current workaround is a web of variables to keep track of which sprite has which animations, which I must be doing wrong!)

    Thanks for any guidance!

    Tagged:

brushfe's avatar

brushfe

Member since 21 Jul, 2013

Twitter
brushfe has 2 followers

Trophy Case

  • 11-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
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • RTFM Read the fabulous manual
  • x10
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x3
    Lightning Draw First person to up-vote a new Construct 3 release
  • x3
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

21/44
How to earn trophies