Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I’m working on the your YouTube tutorial of this, and at the end of the battle video when I test my game, I press space (or enter) on the buttons and nothing happens. I would hate to give up now, so do you know any way to solve this problem?

It's probably the case that your nested if statements are out of order. One way to be able to see the code more clearly is to wrap large blocks of code inside if statements into regions, and then close those regions.
Highlighting a curly bracket will highlight its partner (and if you don't see a highlighted partner where you expect to see it, that's probably going to cause you the kind of issue you mentioned.

#region main

		option_state = global.option_text[selected_option];
		
		selected_option = 0;
		
		switch option_state{
			case "ATTACK":{
				scr_attack(global.pl_stats[e_pl_stats.attack], monster.defence, monster, hero);
				option_state = "DONE"
			}break;
			
			case "ITEM": max_options = 0; break
			
			case "MAGIC": max_options = ds_list_size(ds_magic_list); break;
			
			case "RUN" : {
				var ran_away = choose(true, false);
				visible_string = ""
				
				if (ran_away == true){
					text_to_display = "You ran away like the pathedic coward you are."
					
					victory_state = "PLAYER RAN"
					option_state = "BATTLE OVER"
				}else{
					text_to_display = "You try to run away but fall flat on your face."
					
					option_state = "DONE"
				}
				
			}break}
			#endregion

this is the code, I don’t see anything wrong but I am a noob so do you see anything wrong.

Ok so back then I was doing the noob thing of using strings for enumerators, so check to see if option_state actually equals those strings like "ATTACK" and not "attack" or "Attack" for example because those are 3 different values.

So I checked the values, but nothing seems wrong. I feel like such a noob lol

Go to File > Export and send me the file and I'll check it out

https://loviekaldahl.itch.io/thing-for-gamemaker-rob

here is the link to the thing

I spent some time checking it out. I haven't found anything wrong yet. I don't know if there's a problem with converting whatever version of gamemaker you used to 2.3, but I can't even get show_debug messages to show after pressing Enter/Space, or any other key.

I've had this issue with another project and I don't know of a fix for it.

Deleted 2 years ago

If that is not working is there anything else you can do?

try not using 2.3

i have looked over the code, and still can not find the code. can u send me what ur code looks like?

If you've purchased this asset you should be able to download it to check it out :)