help please

Game Editor comments and discussion.

help please

Postby DarkParadox » Thu Feb 22, 2007 11:53 pm

im try to make a actor destroy another actor in a certain range when they press a certain button how do i do that ???
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Postby Troodon » Sat Feb 24, 2007 11:48 am

Put in keydown event:
1.Check the distance with the distance function
2.If distance is smaller than # destroy the 2nd actor

(# is your range)

I hope this helped.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron