Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

SuCicada

3
Posts
1
Topics
1
Following
A member registered Apr 20, 2019

Recent community posts

(3 edits)

it is amazing! Thank you  lunafromthemoon. I love your code.

I'm sorry I didn't see it earlier, though I couldn't have done it. hahaha.

The method I used before is: when the plot is over, I start a phaser game, like this

   game.state.start("startGame",true);

Then re-initialize the story system when the game is over.

This made my project module clear, but I also spent days researching the source code for RenJS.

Now the RenJS in my project has been messed up by me. hahaha

In RenJS.js

start: function(){    
    this.setBlackOverlay();    
    RenJS.control.paused = false;   
    RenJS.storyManager.startScene("start");    
    this.removeBlackOverlay();  
    RenJS.storyManager.interpret(); 
},

What is the use for   " RenJS.storyManager.interpret()"

Sorry, i am a novice

hello, i met the question same as you . Sorry, i am not good at english.

For example, your write your game code in function "   gamefucntion(){}" . 

You can write

game.state.add('yourgame', gamefucntion);
game.state.start('yourgame');

in CustomContent.js.

But, i don't know how i can exit my game completely.

I want to combine renjs with my phaser game, which is really drives me crazy.