Need help with making a platformer game

https://playcanvas.com/project/873351/overview/project-x this is the game i needed help on
thanks if wanted to join =D and dont be rude to me please =(

Hi @Alex_Wynn_Mosley_s and welcome! I Can you tell a little bit more about the game you want make? What can you do yourself and what you need help with?

1 Like

im just making the well no have not stared but i need help with movment and i need a team for the game and i just have a chrome book =(

They say this code is wrong

pc.script.attribute("camera", "entity", null); // optional, assign a camera entity, otherwise one is created
pc.script.attribute("power", "number", 5000);
pc.script.attribute("lookSpeed", "number", 0.5);
pc.script.create('first_person_movement', function (app) {
    var force = new pc.Vec3();
    
    
    // Creates a new First_person-movement instance
    var First_person_movement = function (entity) {
        this.entity = entity;
        
        this.camera = null;
        this.eulers = new pc.Vec3();
    };
    First_person_movement.prototype = {
        // Called once after all resources are loaded and before the first update
        initialize: function () {
            // Listen for mouse move events
            app.mouse.on("mousemove", this._onMouseMove, this);
            
            // when the mouse is clicked hide the cursor
            app.mouse.on("mousedown", function () {
                app.mouse.enablePointerLock();
            }, this);            
            
            // Check for required components
            if (!this.entity.collision) {
                console.error("First Person Movement script needs to have a 'collision' component");
            }
            
            if (!this.entity.rigidbody || this.entity.rigidbody.type !== pc.BODYTYPE_DYNAMIC) {
                console.error("First Person Movement script needs to have a DYNAMIC 'rigidbody' component");
            }
        },
        // Called every frame, dt is time in seconds since last update
        update: function (dt) {
            // If a camera isn't assigned from the Editor, create one
            if (!this.camera) {
                this._createCamera();
            }
            
            // Get camera directions to determine movement directions
            var forward = this.camera.forward;
            var right = this.camera.right;
            
            // movement
            var x = 0;
            var z = 0;
            // Use W-A-S-D keys to move player
            // Check for key presses
            if (app.keyboard.isPressed(pc.KEY_A) || app.keyboard.isPressed(pc.KEY_Q)) {
                x -= right.x;
                z -= right.z;
            }
            
            if (app.keyboard.isPressed(pc.KEY_D)) {
                x += right.x;
                z += right.z;
            }
            
            if (app.keyboard.isPressed(pc.KEY_W)) {
                x += forward.x;
                z += forward.z;
            }
            
            if (app.keyboard.isPressed(pc.KEY_S)) {
                x -= forward.x;
                z -= forward.z;

oh and im making a platfromer.

wound you join my team =)

I don’t have enough time unfortunately, but to find users you will have to come up with specific ideas so that users know exactly what is expected of them. You can also try to start your own and post problems in this topic.

thank you =D