Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / AGK Studio just trying to do a simple text adventure

Author
Message
tasmanian guy
14
Years of Service
User Offline
Joined: 29th Jun 2010
Location: Australia
Posted: 11th Dec 2024 10:59 Edited at: 11th Dec 2024 11:00
Hi,

Having some assistance with Chatgpt but it isn't quite right.

Hoping someone can help?

DBPro is the new Amos (I hope)
Virtual Nomad
Moderator
19
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 15th Dec 2024 05:19 Edited at: 15th Dec 2024 06:29
tg,

i want to say that your inquiry is not being ignored but i'm failing to come up with an elegant solution thus far.

that said, the immediate issue is that when currentScenario = 1, say the user is pressing the "1" key, currentScenario immediately = 2 and the "1" key is still being pressed prompting currentScenario = 4 and Game Over, all in the same loop/immediately. i think you know that already; hence your efforts to put some space between choices but falling a little short.

this is what i have so far but previous choices are being carried over into subsequent scenarios as i CreateAdventure so i've asked for help on Discord, there.
i believe i've resolved this. see the snippet below, instead.

i rarely work with what i'm trying to do but i'm sure it can be resolved but feel free to look at the code, run it and try to follow the structure in the meantime?

otherwise, you're also creating and deleting text objects every loop which is unnecessary. once i get the structure down, i'll dig back in to account for that. until then, i'm just using Print.

again, i've never done something like this before so appreciate the challenge but did want to try and help as much as possible.

EDIT: i think i've solved the Choices issue (by setting the Array length to -1 and starting over each Scenario):


and, yeah, we are going about things a little differently so you may want to read up on Types and V2 Arrays.

it looks like you've had AppGameKit since V1 Classic while i was a late bloomer and came in @ V2 so it's pretty much all i use.

finally, thanks for the spark in this. after 2 recent game jams, i was feeling burned out and this challenge was refreshing

Login to post a reply

Server time is: 2025-06-01 03:36:32
Your offset time is: 2025-06-01 03:36:32