• Posts: 9
So i need some help cause i don't know any scripting. I need help putting together a script to make a car start with 0 health and every time the player collides with it to add 1 health and when it hits 50 to finish the round. also a script to spawn a specific actor on each side of the screen would be appreciated
He who smelt it, dealt it


  • Posts: 713
You should probably at least consider Stencylpedia before posting really, really basic stuff like this...Anyway...

You can use blocks to create a script like this to spawn actors randomly:
(This would be an event for a scene)
-When created
    Trigger [custom event]

-When [custom event] happens
    Wait [pick random number 5-15] seconds
         Create actor at [give it your own coordinates]
               Trigger [custom event]

Also you should consider starting the car with 50 health and decrementing it by 1 until you reach zero and kill it.  That's kinda how health works...


  • *
  • Posts: 2469

If you go through the entire 5-part series, you'll understand the basics of doing what you posted (and a lot more) ;)
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (,16160.0.html)