Hit holes: just make a hole actor.
Bullet>collision>wall:
- Code: Select all
CreateActor("hole", "hole", "Collide Actor", "no path", 0, 0, false);
DestroyActor("Event Actor");
Keep in mind, that bullets are in front of things usually, but the holes need to become part of the background. In this case, i've set the hole to become a child of the wall (collide actor). Now it will inherit the zdepth of the wall, basically making it part of the background
With save game, you have to convert any necessary values to global integers.
This can be hard depending on how much needs to be saved (this is one reason very few games ever had anytime save, instead they made you go to the inn or something like that). If you were at the inn, there was no battle going on, no xy coordinates to save, made it all much easier.
To save game, you'd use the loadvars and savevars functions.
A global integer, on the variables tab, can be given a save group.
This line here will look for the file config.sav, and load any variables in the group 'prefs'.
- Code: Select all
loadVars("config.sav", "prefs");
and this line will save them.
- Code: Select all
saveVars("config.sav", "prefs");