2DManiac's Recent Forum Activity

  • You do not have permission to view this post

  • Thanks so much! I wasn't aware of this, it works perfectly!

  • How do I access project files through an HTML Element Object?

    I'm trying to create some icons in an HTML Element for a rich text editor that I'm integrating on my project. However I'm having trouble knowing how to access those files through html, or by getting the files URI.

    - Using the actions "Create sprite image element" and "Position object at element" is no good because the images don't look good when imported this way, and the user is able to drag the images around if they click them, which doesn't look very normal for what it's intended.

    Tagged:

  • Very cool, congrats! :)

  • Very cool Prince of Persia vibes.

    Still feels a bit clunky, but it's still fun.

    A few suggestions:

    - Maybe make the movement somewhat tile based, so it can be a bit more predictable. Like the Prince of Persia games. I couldn't grab to one of the ledges for a while because I wasn't pixel perfect aligned.

    - The smoke time-out doesn't feel very intuitive. It should only be safe to cross when the smoke is gone completely. Maybe adjust the timing there.

    Cool project though, keep it up!

  • Like this:

    I also made some adjustments to the demo which include this, and made some tweaks to some values, such as the pathfinding refresh rate. It was at every 0.02 seconds, but that appears to be pretty memory heavy so I changed it to 0.05.

    It also seems to work better with 4 directional movement.

    drive.google.com/file/d/1nDI-BU8huVVyZSzPvkEFd0nZLw6xFY-e/view

  • Adding this should help you achieve the effect:

    Also consider increasing the rotation speed so the characters quickly snap into the correct angle.

    As for the animations, all you need to do is check the angle of the Player/Enemy Controllers and apply the animation to the characters based on that.

    - For example, if Enemy_Controller angle is between 315 and 45, set Enemy animation to "Right".

    You can use the condition "Pick Children" to access the Graphic object belonging to the controller.

    - For example: Condition1 -> Enemy_Controller -> Pick Children -> Enemy.

    Condition2 -> Enemy_Controller angle is between 315 and 45

    Action: Enemy -> Set Animation to "Right"

    Since you used the Condition 1 to specifically pick the child of the Enemy_Controller, it will only change the animation if it's its own child.

    Same applies to the Player.

  • Do you need only the graphics to turn in 4 directions, or do you want to restrict the movement to only Up, Left, Right and Down?

  • I made a small improvement to fix an issue where they would still get stuck in the wall sometimes. Use this version instead:

    drive.google.com/file/d/1nDI-BU8huVVyZSzPvkEFd0nZLw6xFY-e/view

  • Here's an example I made using the pathfinding behavior.

    It has some extra stuff to add a bit of polishing that you may find useful.

    The code is fully commented to great detail, so it should be easy to understand.

    drive.google.com/file/d/1nDI-BU8huVVyZSzPvkEFd0nZLw6xFY-e/view

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hm, interestingly enough I thought I had tried it already, and it turns out I didn't. The 3D shapes indeed do not have this issue. Thanks for the suggestion. So far it seems like it only happens with the 3D Object, and also sprites using Rotate 3D Behavior.

    I'm gonna report this to the creator of the plugin, to see if it's possible to get a fix.

  • Thank you so much! Appreciate you leaving a comment!

    Yes I tried that as I also thought that might be causing the problem, however it doesn't seem to be. The far distance is currently sitting at 10 million haha, and the near distance is at the minimum, 1. It may be that if the near distance was allowed to be lower than one, that might affect the result, but unfortunately I am not able to test that.

    What makes it most odd is that the work around I got (barely a work around) was to just set the Z value of the layer where the object with effects is, to 1. Higher than that makes it problematic again, lower than that also problematic.

    Here's a video of the object getting cut off:

    Subscribe to Construct videos now

    I set the layer Z Elevation back to 0 and made the the glow objects invisible to make it easier to see the issue. As you can see, the object gets cropped at the bottom. With different sized objects, it would also get cut at the top. I wonder what could be causing it

2DManiac's avatar

2DManiac

Member since 20 Jan, 2009

Twitter
2DManiac has 2 followers

Trophy Case

  • 16-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

23/44
How to earn trophies