https://linen.dev logo
Join Discord
Powered by
# ceramic
  • b

    billowy-waiter-28954

    02/17/2023, 10:27 PM
    line.loop = true 🙂
  • g

    gifted-whale-78169

    02/17/2023, 10:37 PM
    weird, i tried that but nothing changed
  • g

    gifted-whale-78169

    02/17/2023, 10:37 PM
    it was still all wonky
  • g

    gifted-whale-78169

    02/17/2023, 10:37 PM
    ill try again
  • g

    gifted-whale-78169

    02/17/2023, 10:39 PM
    oh i think i see the problem
  • g

    gifted-whale-78169

    02/17/2023, 10:39 PM
    it converts the end and beginning into one line, so in my case where its an edge it just cuts it
  • g

    gifted-whale-78169

    02/17/2023, 10:40 PM
    wonder how i can work around that
  • b

    billowy-waiter-28954

    02/17/2023, 11:28 PM
    I don't know what you did wrong, but no, if loop is true and first and last points are the same, it should "loop", nothing more complicated than that
  • g

    gifted-whale-78169

    02/17/2023, 11:29 PM
    ill send my code
  • g

    gifted-whale-78169

    02/17/2023, 11:30 PM
    Copy code
    hx
                    var tb = new Line();
                    tb.points = v.points;
                    tb.points.push(tb.points[0]);
                    tb.loop = true;
                    tb.thickness = 5;
                    tb.color = 0xEEFF00;
                    tb.id = "tb"; //for deleting later
                    v.add(tb);
  • g

    gifted-whale-78169

    02/17/2023, 11:30 PM
    v is a
    Shape
  • b

    billowy-waiter-28954

    02/17/2023, 11:30 PM
    https://github.com/jeremyfa/ld49/blob/main/src/ld49/TeethShape.hx#L91
  • b

    billowy-waiter-28954

    02/17/2023, 11:30 PM
    you forgot that a point is TWO values in the array
  • g

    gifted-whale-78169

    02/17/2023, 11:30 PM
    oh snap
  • g

    gifted-whale-78169

    02/17/2023, 11:30 PM
    i sure did
  • g

    gifted-whale-78169

    02/17/2023, 11:31 PM
    lol thanks
  • g

    gifted-whale-78169

    02/17/2023, 11:33 PM
    its still a bit thinner at the end but im sure its something else im doing wrong
  • b

    billowy-waiter-28954

    02/17/2023, 11:45 PM
    When in doubt, check the « it will fall » sample that does display shapes with borders
  • g

    gifted-whale-78169

    02/18/2023, 12:06 AM
    yea thats what ive been doing lol
  • g

    gifted-whale-78169

    02/18/2023, 12:34 AM
    its weird, it also doesnt look like the lines have a bevel, like they arent being joined
  • g

    gifted-whale-78169

    02/18/2023, 12:35 AM
    my codes good but still looks weird
  • f

    faint-toothbrush-51643

    02/18/2023, 1:05 AM
    is there an option for join mode?
  • g

    gifted-whale-78169

    02/18/2023, 1:08 AM
    what do you mean by that?
  • g

    gifted-whale-78169

    02/18/2023, 1:09 AM
    oh like for the game? its gonna be a single player game (mainly because i have no clue how to implement multiiplayer)
  • g

    gifted-whale-78169

    02/18/2023, 1:10 AM
    i know colyseus but i believe you need a server and i dont have any cash right now
  • g

    gifted-whale-78169

    02/18/2023, 1:10 AM
    maybe p2p?
  • a

    ambitious-knife-25690

    02/18/2023, 1:12 AM
    local coop could totally be done, but, just keep your codebase with such in mind and focus on your original goal of single player
  • g

    gifted-whale-78169

    02/18/2023, 1:12 AM
    yea
  • a

    ambitious-knife-25690

    02/18/2023, 1:12 AM
    if you have no experience with multiplayer, it will be a huge side quest
  • g

    gifted-whale-78169

    02/18/2023, 1:12 AM
    a big thing i want to do is implement an achievement system though, i jsut think that would be sick
1...707172...124Latest