Community
AGI Programming => Mega Tokyo AGI Archive => Topic started by: Joey on October 05, 2002, 10:24:28 AM
-
last night, i worked on dq2 for like 4 hours. you know what i got accomplished? half of a 30 second intro. i have a strange problem. it opens and then you press enter to start playing, or if you wait, it will play the intro. i press enter to skip the intro, it loads the first screen, and i can play fine. but, if i watch the intro, it does everything, then it loads the first screen. i can move around, but i cant access the menu. how can i fix this, and is it a memory problem? the quicker i get an answer, the more time i will have to work on the game today. ;)
-
could someone help me with this!!??
-
it's hard to tell, but it probably isn't a memory problem. It's probably that your game does different things if you skip the intro than if you watch it. Make sure the code to create/enable the menu is in a place where it will get executed regardless whether you skip the intro or watch it...one possible location for such a thing is in the "first room" section of your first room.
if ((prev_room_no == 0 || prev_room_no == 1))
{
}
If that's not the problem, then it may be a memory issue, but I can't say for sure.
-
well actually i think it is something about the prev room thing. before that, i hit enter to skip it and it didnt show ego and i couldnt use the menu. i dont think i could use the menu at least. wait, yes i could. but ego didnt show up. i did the prev room thing and he showed up. but now if i watch the intro, it loads ego, but the menu is not accesible. i didnt get what you meant joel. i do prev room? i think i did that.....
-
In logic 2, you should have some code that looks like this:
if (new_room)
{
...maybe some junk here...
if ((prev_room_no == 0 || prev_room_no == 1))
{
}
...some more junk here...
}
The part that tests the prev_room_no is only true if the game is just starting (or restarting, I think).
Somewhere in your code is code that skips the intro when you press a key...this will probably be in either logic 0 or logic 1. Find this code...
-
i know where that code is. it is like if(have.key)
or something like that. so what do you want me to do with that code?
-
what happens if (have.key) is true?
-
i think that means if you press enter right? if i press enter, it skips the intro and loads the first playable screen. (screen 3) if i dont press anything and wait a little i set it so it plays the intro.
-
are you on aol im right now? this would be easier if we could do this in chat instead of over the message board
-
im on as larrylaffer5
-
ok now i fixed some stuff. if i skip the intro, i can access the menu, and type look and stuff. everything works. if i watch the intro. i can type look and it works. i cannot access the menu. if i type in quit it says i dont understand your request.
the reason the menu didnt work before was because f14 (the menu flag) was not set. :-[ but now if i watch the intro, i make sure f14 is set, but the menu still doesnt work.