See Progress so far! .zip available
Posted: Tue May 12, 2009 2:10 am
okay! so here is the game so far, i have new animations (i made myself <3) and some bugs were smoothed out.
right now i need help with text and speech. when you start out in the level, i have it set up so that there is a wire frame around the actor "NPC" (the big green dragon). when you collide with that, it creates the actor "action" in the little square wire frame above his head. the "action" is a small red button that flashes "B". when you push B when "action" exists, it triggers an activation event to "NPC" which enables his keydown event (which is disabled when he is created so he doesnt do things hes not supposed). there is also a keydown event for "action" that creates the text, text bubble, disables player movement, and finally disables "action"s keydown event so it doesnt interfere with other things. then, with "NPC"s newly enabled keydown event - B, he goes through an if/else string starting at if(talk equals 0) and changes the text to the first phrase, then sets the variable talk to one. it goes through until talk equals 8, then it resets everything. unfortunately i havent been able to get the variable "talk" to go past the first phrase, im not sure what i did wrong, but my code is probably wrong, not to mention im probably going about it the hardest way possible (that seems to be my trademark). here is my code for the keydown event B for "NPC". (i use this string a lot for almost everything and it usually works nicely!)
also, here is a zip file with everything! hosted on my own server.
http://scalesnfuzz.com/Platform.zip
heres the game and controls! as well as all the data and game files in case youre interested ^^ baddies will hurt you, but i havent installed my death system yet :3 although the plant will still eat you and you have to start over.
CONTROLS:
Walk: left, right
Jump: D
Sit: down
Fire: F (get a green or blue crystal)
Idle: move left, right, or sit then leave it alone for 5 seconds
right now i need help with text and speech. when you start out in the level, i have it set up so that there is a wire frame around the actor "NPC" (the big green dragon). when you collide with that, it creates the actor "action" in the little square wire frame above his head. the "action" is a small red button that flashes "B". when you push B when "action" exists, it triggers an activation event to "NPC" which enables his keydown event (which is disabled when he is created so he doesnt do things hes not supposed). there is also a keydown event for "action" that creates the text, text bubble, disables player movement, and finally disables "action"s keydown event so it doesnt interfere with other things. then, with "NPC"s newly enabled keydown event - B, he goes through an if/else string starting at if(talk equals 0) and changes the text to the first phrase, then sets the variable talk to one. it goes through until talk equals 8, then it resets everything. unfortunately i havent been able to get the variable "talk" to go past the first phrase, im not sure what i did wrong, but my code is probably wrong, not to mention im probably going about it the hardest way possible (that seems to be my trademark). here is my code for the keydown event B for "NPC". (i use this string a lot for almost everything and it usually works nicely!)
also, here is a zip file with everything! hosted on my own server.
http://scalesnfuzz.com/Platform.zip
- Code: Select all
if(talk == 0)
{
{
strcpy(texty.text, "Well hello there, little ones!");
talk == 1;
}
}
else
{
if(talk == 1) {
strcpy(texty.text, "How are you today?");
talk == 2;
}
else
{
if(talk == 2) {
strcpy(texty.text, "Have you noticed those crystals about?");
talk == 3;
}
else
{
if(talk == 3) {
strcpy(texty.text, "The green ones fuel your fire,");
talk == 4;
}
else
{
if(talk == 4) {
strcpy(texty.text, "the red ones will heal you,");
talk == 5;
}
else
{
if(talk == 5) {
strcpy(texty.text, "and the blue ones do both!");
talk == 6;
}
else
{
if(talk == 6) {
strcpy(texty.text, "But watch out for those plants,");
talk == 7;
}
else
{
if(talk == 7) {
strcpy(texty.text, "bats and spikes! They are dangerous!");
talk == 8;
}
else
{
if(talk == 8) {
strcpy(texty.text, "Take care now little ones!");
DestroyActor("action");
DestroyActor("texty");
DestroyActor("TextBox");
EventEnable("Draco", EVENTALL);
EventEnable("Jacree", EVENTALL);
EventEnable("action", EVENTALL);
EventDisable("NPC", EVENTKEYDOWN);
talk == 0;
}
}
}
}
}
}
}
}
}
heres the game and controls! as well as all the data and game files in case youre interested ^^ baddies will hurt you, but i havent installed my death system yet :3 although the plant will still eat you and you have to start over.
CONTROLS:
Walk: left, right
Jump: D
Sit: down
Fire: F (get a green or blue crystal)
Idle: move left, right, or sit then leave it alone for 5 seconds