oosyrag's Forum Posts

  • What platform?

    If you have a log in server, that can be used to verify the game version at the same time. What authentication method are you using?

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

  • 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

  • You do not have permission to view this post

  • Tween is good for precise start and end values. It should work fine for your purpose.

    You can cancel the previous tween and start a new one for consecutive shots. You can also change the tween ease so that it's not linear.