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

    gifted-whale-78169

    02/15/2023, 3:30 PM
    Where's the build.xml file?
  • a

    ambitious-knife-25690

    02/15/2023, 3:32 PM
    not sure, i didn't need to do any setup for compiling to hxcpp
  • a

    ambitious-knife-25690

    02/15/2023, 3:32 PM
    as long as you have visual studio build tools
  • a

    ambitious-knife-25690

    02/15/2023, 3:32 PM
    it should just work
  • g

    gifted-whale-78169

    02/15/2023, 4:02 PM
    I'm on Linux lol
  • e

    elegant-twilight-61392

    02/15/2023, 4:03 PM
    mmmm windows
  • a

    ambitious-knife-25690

    02/15/2023, 4:12 PM
    did you ever setup hxcpp for any other haxe thing?
  • a

    ambitious-knife-25690

    02/15/2023, 4:13 PM
    look for a guide on how to install gcc
  • a

    ambitious-knife-25690

    02/15/2023, 4:14 PM
  • a

    ambitious-knife-25690

    02/15/2023, 4:14 PM
    like this one for ubuntu
  • b

    billowy-waiter-28954

    02/15/2023, 5:54 PM
    @gifted-whale-78169 https://ceramic-engine.com/guides/platform-setup/#linux
  • g

    gifted-whale-78169

    02/15/2023, 5:54 PM
    Oh thanks
  • g

    gifted-whale-78169

    02/15/2023, 8:39 PM
    That doesn't say where the build.xml file would be though
  • g

    gifted-whale-78169

    02/15/2023, 9:27 PM
    anyways im just now realizing how useful the clip property is
  • g

    gifted-whale-78169

    02/15/2023, 10:18 PM
    im trying to destroy my custom transition class after i use it, how should i go about doing it?
  • g

    gifted-whale-78169

    02/15/2023, 10:19 PM
    ive tried it through events and just calling destroy() after or during a specific function call but of course its a fatal because the function cant finish
  • g

    gifted-whale-78169

    02/15/2023, 11:01 PM
    heres transitioning, not sure if i implemented it right but it works anyways
  • g

    gifted-whale-78169

    02/15/2023, 11:01 PM
    i make an instance and pass true or false to the
    fadein
    parameter, if true than they tween to cover the screen, else they tween off of it
  • g

    gifted-whale-78169

    02/15/2023, 11:01 PM
    and i have a
    done
    event that emits after the animation and then the instance is destroyed
  • g

    gifted-whale-78169

    02/15/2023, 11:02 PM
    works pretty damn well though
  • g

    gifted-whale-78169

    02/15/2023, 11:04 PM
    Copy code
    haxe
    //LaunchMenu.hx (starting scene)
        function keyUp(key: ceramic.Key) {
            if (key.scanCode == ceramic.ScanCode.ENTER) {
                var t = new Transition(); //example of a transition and destroying after switching scenes
                add(t);
                t.onceDone(this, () -> {
                    app.scenes.main = new MainMenu();
                });
            }
        }
    //MainMenu.hx in constructor (second scene)
            var t = new Transition(false);
            t.onceDone(this, () -> {t.destroy();}); //destroy transition once done
            add(t);
  • g

    gifted-whale-78169

    02/15/2023, 11:04 PM
    hopefully the transition for the LaunchMenu is destroyed when the scene is switched..
  • g

    gifted-whale-78169

    02/15/2023, 11:07 PM
    next up polygon menu buttons
  • g

    gifted-whale-78169

    02/15/2023, 11:14 PM
    nevermind i found it
  • q

    quick-address-35950

    02/16/2023, 1:22 PM
    How to build for unity? When I do ceramic unity build it asks me to specify a target
  • b

    billowy-waiter-28954

    02/16/2023, 3:04 PM
    The target is also called « unity », so, ceramic unity run unity etc…
  • q

    quick-address-35950

    02/16/2023, 3:20 PM
    Thanks a lot
  • g

    gifted-whale-78169

    02/16/2023, 10:22 PM
    how can i make a polygon? i know you use
    Shape
    or
    Mesh
    but i dont know what to do with the points property
  • g

    gifted-whale-78169

    02/16/2023, 10:32 PM
    oh are every two numbers a coordinate?
  • f

    faint-toothbrush-51643

    02/16/2023, 10:35 PM
    yes
1...686970...124Latest