1. Saving game, the most important thing for now, as already sayd the game is big (and difficult, i was ispired to dark souls to be clear) so i need to save or we have to start over everytime. I already followed the tutorial for saving game, but it's not working becouse my actor has another actor as parent, a filled region on is foot, (to make better collision) called pg, so we i save the x and y pos, i need to save the pg position too (and the view too).
A checkpoint system could fit too.
If possible i want to restart\load the game by clicking a button with the mouse.
For now i tried this temporary solution:
On check point collision:
Check = 1;
On "start to last checkpoint" button:
if (check) {
pg.x = checkpoint.x;
pg.y = checkpoint.y;
view.x = checkpoint.x;
view.y = checkpoint.y;
start = 1; // Make the view restart to follow the player
}
Some times it work, but some times the player rewpown in a different place, lot above for exemple, or with the filled regions separated from player..
2. I'll like to have better dialogues, right now i'm using this for dialogue:
Npc collision with player :
- Code: Select all
char *key = GetKeyState();
if (key[KEY_UP]==1 && x < pg.x + 20 && x > pg.x - 20 && !canMove)
{
EventDisable("Player", EVENTKEYDOWN);
dialog4.x = -5680;
dialog4.y = 1525;
box4.x = -5530;
box4.y = 1550;
sprintf(dialog4.text, "Text");
i3 = 1;
}
And this with "dalog4" -> key down (return):
- Code: Select all
switch (i3) {
case 1: sprintf(dialog4.text, "Text"); break;
case 2: sprintf(dialog4.text, "Text"); break;
case 3: sprintf(dialog4.text, "Text"); break;
case 4: sprintf(dialog4.text, "Text"); break;
case 16:
EventEnable("Player", EVENTKEYDOWN);
dialog4.x = 10000; // I send they far away lol
dialog4.y = 10000;
box4.x = 10000;
box4.y = 10000;
break;
}
i3++;
So the main question for the dialogue are:
-There's a better way to make dialogue?
-How to start a new lines? (i'm writting in only 1 line lol)
-How to make interactive dialogue, like a question where you can choose the answer?
3. A easy way to make a step sound when walking?
4. Can i remove the initial animation of game editor when play the game?
5. The game can be exported for console like xbox360\ps3?