Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Question about change of chapters and states?

A topic by kirwen created Oct 21, 2020 Views: 158 Replies: 1
Viewing posts 1 to 2

I love the work you have done but I feel like I am confused on why I cant seem to get a gamestate change to chapter 2 using.  Still very new to the GML side of things vs drag and drop.  This was the only thing I had added in scrChapterr1 and duplicated to create a scrChapter2 while adjusting everything it to to align with 2 or chp2.

if (op1)
{
gameState = gState.chapter2
playState = Chap2.intro;
}

The only other thing is I noticed you didnt leave any examples of inventory items or combat.  Do you have any good suggestions on gamejam or the GM marketplace for that?  

Ok update...

I am able to get Op2 and the next title area to work fine.  As far as I can in obj_GameControl chapter 2 is enumerated correctly as well as intro is.


// OP1 doesnt currently work
if (op1) { gameState = gState.chapter2; playState = Chap2.intro; }
if (op2) playState = Title.encounter1;
break;

case Title.encounter1:

msg = @"testing a new playstate chatper 1 enounter 1




Press 1 to return to Title Screen for testing";

//Doesnt currently work
if (op1) { gameState = gState.titleScreen; playState=Title.mainMenu; }