MarkeGamer's Forum Posts

  • Maybe you could find this link usefull? https tutorials 1049 simple-swipe-on-object (add :// and / where needed, i can't post full links since i don't havve 500 rep)

    Thanks for your reply in fact i used the same code but i have a problem about moving the box to right or left

  • Please someone help me, I have a falling box with physics behavior i want to change his direction when i swipe, the box will move to right or to left and continue to fall as the image below

    Im using the plugin of chipmunk

  • This is a quick and messy version. Realistically you should put in code to check if you are using a touch device or mouse device.

    https://www.dropbox.com/s/ikq6fkkkxying43/TouchMoveAtAngle-3bf0x83iljqa5.capx?dl=0 Ta da !

    its okey thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • MarkeGamer

    Perhaps use a larger force?

    It's okey Thanks =)

  • I have a box with physics behavior falling from top to down when i touch the box i set the max speed to 40 which allow me to decrease the speed of fall and everything is okey the issue is when i want to change the direction of that box ( after the click) with swipe left or right i have tried the force but it doesn't work, the box is still fixed on the same target.

  • Try having it set the box.angle to touch.angle might not do the job properly, but will introduce you to using the .angle property.

    Thanks for your reply could you please give me an example ?

  • Hello,

    I have a box with physics behavior falling from top to down when i touch the box i set the max speed to 40 which allow me to decrease the speed of fall and everything is okey the issue is when i want to change the direction of that box ( after the click) with swipe left or right i have tried the force but it doesn't work, the box is still fixed to the same target.

  • This way ?

    https://

    drive.google.com/open?id=0B1SSuCVV8v74OTZXNmxxUmRqbG8

    Omg really this is what i'm looking for thanks bro you saved my time =)

  • I have a falling box with physics behavior i want to change his direction when i touch it the box will move to right or to left and continue to fall as the image below

  • Angles in Construct2 are set up this way:

    0 = left

    90 = down

    180 = right

    270 = up

    You shouldn't test for the exact angle, though..

    Use system is withing angle, should work nicely..

    I'm beginner if you don't mind can you give me an example just in case of one angle?

  • You can use sprite.Pathfinding.MovingAngle to set the animation.

    Thanks for your reply i know this method but i can't detect which angel is right up down or left and how i will create a condition about it

  • Hi im making a Top down game and i have an issue about how to set animations enemy sprites for each directions, i'm using PathFinding option i disabled the Rotate object in menu.

    NB: i don't wanna activate Rotate object option.