shmikucis

Game editor on Phaser

Recommended Posts

Hi Mario,

 

thanks for good words :)

 

You can import all files by drag&drop to file tree section in source editor (screenshot below)

 

post-4149-0-71307100-1423752667.png

 

Unfortunately I don't know your current workflow and can't give universal answer. But one thing is for sure. You will have to load all assets through editor instead of preload function which most probably you are using now. It may happen that sprite texture keys differs which then should be manually renamed. 

 

All the rest should be easy adjustable. Groups, sprites, texts, tile layers are created with mt.create(objectName) and you handle them as normal Phaser objects.

Share this post


Link to post
Share on other sites

Mighty Editor is so awesome really.

I have export issue when I export with phaser.io (js) then it says

 

not found:
..\client\data\build\p255t\0\p2.min.zip

 

 

p2 is my project name

Share this post


Link to post
Share on other sites

Hi,

 

If you are using online version http://mightyeditor.mightyfingers.com

try to export webapp first (Export->Web App...) - this usually fixes export for cloned projects,

if that is not helping please report a bug: https://github.com/TheMightyFingers/mightyeditor/issues/new
and I'll try to fix it ASAP

 

If you are using local version try to install zip - MightyEditor zips exported folder - this step fails without any warning.
on windows: http://gnuwin32.sourceforge.net/packages/zip.htm
download setup program and then add "C:\Program Files (x86)\GnuWin32\bin" to path

http://www.computerhope.com/issues/ch000549.htm

on linux depends on distribution:

ubuntu, debian: sudo apt-get install zip

Share this post


Link to post
Share on other sites

I cannot reproduce.

Are you using online version? Or local?

Actually web app - calls basic phaser.io first and then parses index.html and minifies source files (js, css).

 

There is a known bug that directly after cloning project export and Open Game is not working and MightyEditor needs to be reloaded.

Is Open Game working?

Share this post


Link to post
Share on other sites

Need help!When I open my game in MightyEditor it goes to a blank screen,sending play.js now!

 

"use strict";
window.Portal2D.state.play = {
    preload: function(){
        console.log("loading play state");
        
this.player = mt.create("g4350");
        this.redportal = mt.create("Redportalpng");
        this.blueportal = mt.create("blueportal");
        this.blocks = mt.create("block");
    },
    
    create: function(){
        console.log("starting play state");
    
        
        

        
            this.cursors = this.game.input.keyboard.createCursorKeys();
    this.space = this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR);
        

        this.camera.positionX =this.player.positionX;
        this.camera.positionY =this.player.positionY;
        
        if (this.cursors.left.isDown) {
    this.character.body.velocity.x = -200;
 
    this.character.scale.x = -1;
} else if (this.cursors.right.isDown) {
    this.character.body.velocity.x = 200;
 
    this.character.scale.x = 1;
} else {
    this.character.body.velocity.x = 0;

}
    },
    
    update: function(){
        this.game.physics.arcade.collide(this.player, this.redportal);


        
        this.player.positionX = this.blueportal.positionX;
        this.player.positionY = this.blueportal.positionY;
    },
    
    Blocks : function(){
        this.game.physics.arcade.collide(this.player, this.blocks);


        
        
    }
    

 

};

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.