CrimsonTheDarkBat wrote:@SuperSonic: Hmm, when you mean from .dat files, do you mean just having the cutscenes in separate files to the levels or what do ya mean exactly? ^^;
CrimsonTheDarkBat wrote:Moonwalking is one thing I'm definitely trying to solve for my next release ^^;
char *key=GetKeyState();
int IsPressedLR=key[KEY_RIGHT]-key[KEY_LEFT];
int IsJUMP_PRESS=key[KEY_SPACE];
switch(IsPressedLR) {
case 0:
if (animindex==getAnimIndex("WalkRight")) {
ChangeAnimation("Stop Right");
}
else if (animindex==getAnimIndex("WalkLeft")) {
ChangeAnimation("Stop Left");
}
break;
case 1: //Right
x+=5; //Might be left, instead of right. idk
if (IsJUMP_PRESS==0) {
ChangeAnimation("Player", "MOVE_RIGHT", NO_CHANGE); //Incorrect code but make "Forward" "NO_CHANGE".
}
else if (IsJUMP_PRESS==1) {
ChangeAnimation("jump right instead");
}
break;
case 2: //Left
x-=5; //Might be right instead of left, idk :3.
if (IsJUMP_PRESS==0) {
ChangeAnimation("Player", "MOVE_LEFT", NO_CHANGE); //again :3
}
else if (IsJUMP_PRESS==1) {
ChangeAnimation("Jump left instead");
}
break;
}
SuperSonic wrote:CrimsonTheDarkBat wrote:@SuperSonic: Hmm, when you mean from .dat files, do you mean just having the cutscenes in separate files to the levels or what do ya mean exactly? ^^;
What I mean is having all of the executable data (such as images to load, animations to play, sounds to create etc), in one dat file. Isn't that what you did?
LoadGame("cut2.dat");
CrimsonTheDarkBat wrote:
- Code: Select all
LoadGame("cut2.dat");
CrimsonTheDarkBat wrote:Woot, Empire of Nightmares is on the frontpage. B-)
Hblade wrote:cut2.mylongfreknfilenamelolwithnumbers12309123912390ohyeahnobodycaneverguessthisextension
SuperSonic wrote:CrimsonTheDarkBat wrote:
- Code: Select all
LoadGame("cut2.dat");
CrimsonTheDarkBat wrote:Woot, Empire of Nightmares is on the frontpage. B-)
Great, thank you. And congrats :DHblade wrote:cut2.mylongfreknfilenamelolwithnumbers12309123912390ohyeahnobodycaneverguessthisextension
:lol: :lol: :lol: :lol:
Users browsing this forum: No registered users and 1 guest