Reply to Re: Scripting question
If you don't have an account, just leave the password field blank.
: : This must be a very easy one to answer, and I feel like a newbie asking, but since I have no clue how to do it...
: : How do you put a static graphic (a wall and such) on screen by using a procedure?
: : I've tried the int &name = create_sprite(); but that doesn't work.
: : And how do you move such a sprite without seeing the other sprites that are in the same sequence?
: What brain are you giving the sprite?
: Have you set sp_speed()?
: Set brain to 0, give a speed of say 3 and see what happens. I usually have sprites that are static placed in the map already and then attach a script that moves them on certain triggers (ie being pushed, hit...) So I'm not sure 100% on the brain setting (I don't actually set it via the script).
I set speed to 1, but I'll try 3. I've given it brain 0. I would like to attach a script, but it's in the intro, so no one can trigger it, at least not the player.
: : How do you put a static graphic (a wall and such) on screen by using a procedure?
: : I've tried the int &name = create_sprite(); but that doesn't work.
: : And how do you move such a sprite without seeing the other sprites that are in the same sequence?
: What brain are you giving the sprite?
: Have you set sp_speed()?
: Set brain to 0, give a speed of say 3 and see what happens. I usually have sprites that are static placed in the map already and then attach a script that moves them on certain triggers (ie being pushed, hit...) So I'm not sure 100% on the brain setting (I don't actually set it via the script).
I set speed to 1, but I'll try 3. I've given it brain 0. I would like to attach a script, but it's in the intro, so no one can trigger it, at least not the player.