Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by salsa

How I can change to a new level?
First a load the level Dungeon_a .. but after I wanna change for the Dungeon_b

Im trying to use:
ig.game.loadLevel(LevelDundeon_b);

But doesnt work... :(

ig.module( 
    'game.main' 
).requires(
    'impact.game',    
    'game.entities.main-player',    
    'game.entities.player',
    'impact.debug.debug',
    'game.levels.dungeon_a',
    'game.levels.dungeon_b'
).defines(function(){

    RPG = ig.Game.extend({        
        init: function() {           
            this.loadLevel(LevelDungeon_a);
        },
        
        update: function() {
            this.parent();
        },
        
        draw: function() {
            this.parent();
        }
    });
});

Whats is wrong?
How to do this work?


Thanks

1 decade ago by fugufish

post more code, we need to see LevelDungeon_b too

1 decade ago by salsa

More code? That is the code ... i made the levels in weltmeister and im trying to change for a new level using:

ig.game.loadLevel(LevelDundeon_b);

But doesnt work :/

1 decade ago by alexandre

LevelDundeon_b
Dundeon
d!!!
come on. :)

1 decade ago by StuartTresadern

maybe a typo in the level name !! LevelDundeon_b !!

LevelDungeon_b......

1 decade ago by fulvio

Dundeon's all the way.

1 decade ago by salsa

i just miss type here... on my code is correct :)


I dont know whats happens but I change this... now Im using Director plugin :)

thanks anyway :)
Page 1 of 1
« first « previous next › last »