Making a game on Alice, have some questions -
10-10-2009, 04:09 PM
I am making a kind of game where many enemies will walk onto screen from the right, and you have to shoot and kill them before they reach you.
1. I will be using the same object as the enemies, so how would I make it so that they will keep appearing one after another? Or alternately, how would I put like 1,000 of them off the screen and just get them to walk on screen one after the other?
2. How can I make a 'counter' that will display how many enemies you have killed when the game is over?
Making 1,000 would put too much strain on Alice, but you could put an object offscreen in a spot where the enemy can move to. Taht way, every time the enemy object is shot, it can disappear, move to the object, then reappear and walk onscreen again, meaning you only need one enemy.
For the counter, make a variable which increments when the enemy is shot, then have a 3d text which sets its text to the variable as a string when it increments.
For the counter, make a variable which increments when the enemy is shot, then have a 3d text which sets its text to the variable as a string when it increments.
Click the 3d text, then click the properties tab on the left side of the screen. There's a property called text which you can drag on the scripting area to make a set text to method.
I told you about the text already, and incrementing a variable is nearly the same process, drag the variable tile onto the scripting area and select increment variable.
To make a counter, increment the variable, then have the 3d text set its text to the variable.