Project 'R'
Posted: Sat Feb 25, 2006 11:09 am
Currently I am working on a cool game project, and it is coming along very well. I have a few questions, though:
1: When typing a string into a function such as strcpy, can I make it go down a line, and if so how?
eg. 'I am typing a text and I am coming to the end of a line so I will move
down a line and continue typing.'
2: Also typing a string for something like the text someone says that includes a string variable in it. For example if you had a string 'name' that was set to 'Fred', could you type something like
3: Now, a question on making a place to type a text such as 'name' in, like the beginning of a game. So you say 'new game' and it asks your name. I can do it with about half a bazillion 'key down' events, but could I get it to use only one (without half a bazillion 'if' statements) and have the backspace key work properly (as opposed to having it clear the whole string)?
4: When using activation regions and you destroy an actor (say an enemy) in one, then move to a new region, when you return to the original region, will the enemy come back? Is there a good way to do this?
5: Last, but not least, Is there a good way of saving the EXACT state of a game and loading it again in the EXACT same way (number of enemies of which type etc.) (and if I wanted you to start off in a certains spot (like the beginning of the level) I could either have it save there, or have it move you to those coordinates when you are created, and you could keep your progress in the level such as items collected)?
1: When typing a string into a function such as strcpy, can I make it go down a line, and if so how?
eg. 'I am typing a text and I am coming to the end of a line so I will move
down a line and continue typing.'
2: Also typing a string for something like the text someone says that includes a string variable in it. For example if you had a string 'name' that was set to 'Fred', could you type something like
- Code: Select all
strcpy(text, "Hello,"name", how are you?)
3: Now, a question on making a place to type a text such as 'name' in, like the beginning of a game. So you say 'new game' and it asks your name. I can do it with about half a bazillion 'key down' events, but could I get it to use only one (without half a bazillion 'if' statements) and have the backspace key work properly (as opposed to having it clear the whole string)?
4: When using activation regions and you destroy an actor (say an enemy) in one, then move to a new region, when you return to the original region, will the enemy come back? Is there a good way to do this?
5: Last, but not least, Is there a good way of saving the EXACT state of a game and loading it again in the EXACT same way (number of enemies of which type etc.) (and if I wanted you to start off in a certains spot (like the beginning of the level) I could either have it save there, or have it move you to those coordinates when you are created, and you could keep your progress in the level such as items collected)?