oosyrag's Recent Forum Activity

  • Make an arrow sprite, set it to your cursor position, set it's angle towards position to ball.x ball.y.

  • It probably has something to do with the way the layout is set up. Is your layout utilizing layers? Make sure you have the correct layer selected when creating the sprite. Check that the upper layers have the transparent property enabled. If the "white layout part" is an object, you can try selecting it and right clicking -> z-order -> send to bottom of layer. Otherwise not really enough information to guess what's wrong.

  • LastX is probably a user created instance variable. It is commonly used to compare the current and last position of a sprite object, by setting self.LastX to self.X at the end of every tick.

  • Well the opposite of the last action depends on how you have your actions set up, which I do not know.

    You could also keep track of the locations that an object has been to instead, and use those to move instead.

    Each object can have its own history. So when you use undo just do it for each object based on it's own history, and keep track even if it didn't move.

    I can put an example together later.

    Edit: dropbox.com/s/1vi6kp5p7lcn30n/undo_example.c3p

  • Check out the catapult example.

    editor.construct.net

  • When using physics, don't use other movement behaviors.

    To make objects move with physics, apply forces and impulses.

    To make objects not be able to move with physics, set the immovable property.

    Experiment with density, friction, elasticity, and damping until you get the result you are looking for.

  • Use the line of sight behavior and cast a ray. Then on ray intersected event you can use the object.lineofsight.hitdistance to set the width of your line.

  • Use an array to store a history of moves.

    Every time a move is made, push the action/result into the array. When undoing, do the opposite of the last action, and delete it from the array.

  • The workaround is to check if the objects are overlapping (x/y), then add a second condition comparing the z height of one object (the solid, or "floor") with the z elevation of the other (the player). This only works for "flat" surfaces.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 6000? You want to be aiming for 1-2k for a humanoid character on desktop, probably less than 500 on mobile.

  • Yes, you can do this with the drawing canvas object.

  • You do not have permission to view this post

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 39 followers

Trophy Case

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

22/44
How to earn trophies