ArmonPlan's Forum Posts

  • hi!

    I guess the pathfinding behaviour should be one of the solutions ?

    This tutorial maybe could help you ! :)

    https://www.construct.net/en/tutorials/bite-sized-game-development-724

    Hope it helps :)

  • seems like you nailed it in that example dop2000 ! :)

    can this be done in construct 3?

    do you know how to apply tag filters? in my testing it seemed like that's the way. i could see how to make an exclude / include action.. but i couldn't see where to put tags to have it work..

    if u are talking about include/exclude tags for physics behaviour i think there's no way to do that natively in construct3 (i mean with a behaviour at least equal to the native one)

    The only way i found was to define your own physics behaviour but it's a very big work

  • You need to somehow create rigid joints between all pieces of the line. I tried to do it with physics (created joints in triangles, used an invisible block to join to), but nothing worked. The line was not rigid and easily broke when collided with an inmovable object.

    I managed to do this only with Box2d+ addon in Construct 2

    Thank you so much this is exactly what i'm looking for !

    I'll dig into that for construct3 xD

    Thank you again !!

    Ps: the plugin is now ported to construct 3, no ? https://www.construct.net/en/forum/construct-3/general-discussion-7/box2d-asm-js-physics-amp-130459

    It's weird bcs on the plugin page i see only construct2 mentionned ... i dont know if it's compatible or not :(

  • okay well, i guess you seek sthing similar to this right ?

    It's a shorter tutorial to make sthing similar to your needs i guess

    https://vocal.media/gamers/how-to-create-lighting-effect-in-construct-2-and-3

    Hope it helps :)

    ps: when they say "attach the light object to the player", just attach it to your torch/campfire object if you want sthing similar to your screenshot

  • Hi !

    i guess you can use this method, no ?

    https://www.construct.net/en/tutorials/making-advanced-lighting-2232/need-2

    hope it helps !

  • well, this is the best i've got so far !

    https://www.dropbox.com/s/1qiq0hfkvkeknle/drawtest2.c3p?dl=0

    but it's clearly not perfect, the physics are not very good as long as the drawing is not considered as an entire sprite, do you think it's even possible with construct3 please ?

    I'm not sure at all :(

    Thank you in advance :D

  • Well, i dont find the way to apply gravity to the whole drawing :(

    i tried many ways but none of them works correctly,

    please find my test project attached, if anyone could help please :D

    ps: the start is good, but when the mouse is released, nothing is pinned and all of the "points" are independant

    https://www.dropbox.com/s/1qiq0hfkvkeknle/drawtest2.c3p?dl=0

  • there is some kind of solid collision filter.. i can't get it to work but if you can figure out how to use tags to ignore one object (other pieces of line) but collide with everything else you should be good to go. good luck!

    Thank you so much for your help and tips!!!

    I would dig on the way you gaved to me and i would post an eventual "solution" here :D

    Thank you all for your help !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • there are way better construct guys out there, but my first thought would be that either we do some of "pin to object" thing where you have a container object that's invisible and all of the spawned objects are pinned to that invisible object.. when you let go physics of that invisible object is what falls and all those pinned objects should move with it.

    https://www.dropbox.com/s/hxu80vdm3cbeja8/pin%20example.c3p?dl=0

    OMG i dont even know why i didnt think about that, THANK YOU it's a good track i guess !

    But this would prevent the drawing to be subject to gravity, no ?

  • Is this what you are trying to make?

    https://howtoconstructdemos.com/physics-game-draw-lines-to-catch-falling-objects-capx/

    Here is another example:

    https://howtoconstructdemos.com/draw-a-path-on-the-screen-and-move-your-character-along-it/

    Yes thank you ! the first one is exactly what i need, just missing the physics part

    the aim is to "pin" each points to the preceding so i can apply gravity to the drawing

    The second is good to keep if needed one day xD

  • Hi Part12studios and thank you for this answer !!

    i've tried this solution but this wasnt as accurate as i wanted soo i did it like this:

    1/ draw a first sprite on the very first touch

    2/ compute distance between the last sprite created and current touch position

    3/ repeat N times (where N is the result of the division of the distance by a global variable "distanceBetweenPoints")

    4/ and inside the repeat loop i'm drawing a point at lastSprite.X and lastSprite.Y + define position by angle where angle = the relative angle to current touch point, and distance = "distanceBetweenPoints"

    I hope it's clear :D

    with this method the line is very smooth :D

    My last problem is to find a way to "pin" each points with the last one created

  • edit1: sorry the url is not shown correctly: https://play.google.com/store/apps/details?id=com.orbital.brainiton https://play.google.com/store/apps/details?id=com.orbital.brainiton

  • Hi !

    I try to make a solid line wich has to be drawn with the player's finger (something like that play.google.com/store/apps/details

    But, i have 2 main issues, i've created a little sprite (10x10) and assigned the Solid and the Physics behaviour to it,

    now i try to draw like this :

    the main issue is: when i'm moving my finger fast, the sprites are not drawn side by side but with a huge distance between each ones

    The second issue is: i cant "fix" em all so they act as a solid path

    Thank you so much for your help :D

    Edit: Link to the solution https://www.construct.net/en/forum/construct-3/how-do-i-8/draw-solid-line-finger-157441/page-2#forumPost1031100