https://linen.dev logo
Join DiscordCommunities
Powered by
# ceramic
  • g

    gifted-whale-78169

    08/11/2022, 11:45 PM
    https://github.com/sharpcdf/ceramic-test
  • g

    gifted-whale-78169

    08/11/2022, 11:45 PM
    still errors 😭
  • g

    gifted-whale-78169

    08/12/2022, 12:09 AM
    I DID IT!!!!!
  • g

    gifted-whale-78169

    08/12/2022, 12:09 AM
    but im not very happy because of how obvious it is
  • g

    gifted-whale-78169

    08/12/2022, 12:09 AM
    Copy code
    hx
        public function resize() {
            this.size(screen.width, screen.height / 4);
            this.pos(screen.width * 0.5, screen.height - 10);
            begin.pos(width * 0.4, height * 0.5);
            credits.pos(width * 0.6, height * 0.5);
        }
  • g

    gifted-whale-78169

    08/12/2022, 12:13 AM
    ive just been forgetting to update the text pos
  • g

    gifted-whale-78169

    08/12/2022, 12:29 AM
    now i gotta think of a way to make it pop out
  • g

    gifted-whale-78169

    08/12/2022, 12:29 AM
    colorful and cruelty squad style
  • g

    gifted-whale-78169

    08/12/2022, 12:31 AM
    ill focus on that later
  • f

    faint-toothbrush-51643

    08/14/2022, 4:41 PM
    since my problem with spine has been solved, i'd like to ask about some other things
  • f

    faint-toothbrush-51643

    08/14/2022, 4:42 PM
    first, music that doesn't loop from the beginning
  • f

    faint-toothbrush-51643

    08/14/2022, 4:43 PM
    there's an intro and then the part that loops
  • f

    faint-toothbrush-51643

    08/14/2022, 4:43 PM
    the two ways to do it would be to have an intro file and a loop file
  • f

    faint-toothbrush-51643

    08/14/2022, 4:44 PM
    you play the intro, you use an event to play the loop when it ends, and the loop loops using the loop property
  • f

    faint-toothbrush-51643

    08/14/2022, 4:45 PM
    the other way is to have it all in one file with the start and end of the loop defined, and set the position back when it's past the loop
  • f

    faint-toothbrush-51643

    08/14/2022, 4:46 PM
    i normally prefer the latter but i'm unsure because audio is one pf those things that varies between platforms and i'm not all familiar with how ceramic does it
  • f

    faint-toothbrush-51643

    08/14/2022, 4:50 PM

    https://youtu.be/Ouj_cwWJdmoâ–¾

  • b

    billowy-waiter-28954

    08/14/2022, 5:49 PM
    @faint-toothbrush-51643 Ceramic audio has been improved lately, but to get a perfect loop, yes you would be better off using two different audio files for the begin part and the loop part. You can try to setup the loop manually yourself (play a new iteration from the correct position when you reach end of the previous iteration) and it should work too
  • f

    faint-toothbrush-51643

    08/14/2022, 7:56 PM
    how exactly would i do that, andwould there be any gap between the intro and the loop?
  • b

    billowy-waiter-28954

    08/15/2022, 4:01 PM
    There shouldn’t be any gap if you time it correctly
  • f

    faint-toothbrush-51643

    08/15/2022, 4:13 PM
    but how would i do that?
  • b

    billowy-waiter-28954

    08/15/2022, 4:29 PM
    You play sounds at the correct time using ceramic.Timer
  • b

    billowy-waiter-28954

    08/15/2022, 4:29 PM
    Timer.delay()
  • f

    faint-toothbrush-51643

    08/15/2022, 11:35 PM
    that might not be the best solution since i'm planning on possibly having pausing in the future
  • f

    faint-toothbrush-51643

    08/15/2022, 11:35 PM
    i think i'll try doing single file with setback and see how that turns out, since it should be fairly easy to implement
  • b

    billowy-waiter-28954

    08/16/2022, 9:17 AM
    You can cancel a Timer delay when pausing and setup a new one when resuming, but yes that requires some setup. Anyway at this point you should try whatever method you prefer and see how it goes
  • f

    faint-toothbrush-51643

    08/16/2022, 9:10 PM
    i've implemented it the single-file position-subtracting way and there's no problems with it so far
  • f

    faint-toothbrush-51643

    08/19/2022, 7:06 AM
    is there an existing way to do 9-slices?
  • b

    billowy-waiter-28954

    08/19/2022, 10:31 AM
    Not yet
  • b

    billowy-waiter-28954

    08/19/2022, 10:32 AM
    You can build your own using quads
1...789...124Latest