Please rate this

a w.i.p i’m working on:
https://playcanvas.com/project/933099/overview/arendia
i only have the design of the title screen, rip

1 Like

Hi! @lak04171 Your project seems pretty cool if you want to make it into a game you can switch scenes with the start button with this script below.

ChangeSceneOnClick.attributes.add('sceneName', {type: 'string'});

// initialize code called once per entity
ChangeSceneOnClick.prototype.initialize = function() {
    this.entity.button.once('click', function() {
        loadScene(this.sceneName, { hierarchy: true, settings: true });
    }, this);
};


// swap method called for script hot-reloading
// inherit your script state here
// ChangeSceneOnClick.prototype.swap = function(old) { };

// to learn more about script anatomy, please read:
// https://developer.playcanvas.com/en/user-manual/scripting/

make sure you upload this script into your editor then download it. Then delete the original and re upload the script that you downloaded.

https://playcanvas.com/editor/code/924351?tabs=81221715
link for script to download.

1 Like

thanks! i was looking to update it today

i never even added a script to it because the open world is not finished