Shooting

Non-platform specific questions.

Shooting

Postby hunter84 » Tue May 29, 2012 6:49 pm

how do i get enemy bullets to kill me? and how do i respawn?
If two wrongs don't make a right, try three.
Work in progress:
viewtopic.php?f=4&t=12888

Finished work:
Space Adventures- Lost In Space viewtopic.php?f=4&t=12587
User avatar
hunter84
 
Posts: 133
Joined: Thu Nov 10, 2011 12:13 am
Location: Yukon, Canada
Score: 3 Give a positive score

Re: Shooting

Postby skydereign » Tue May 29, 2012 6:54 pm

You can use the DestroyActor function in the collision event between the player and the enemy bullets. If you want to add hp into the equation, you'll need to create a variable to store hp. There are plenty of posts about how to setup hp in your game. To respawn, use the CreateActor function.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest