Working Gun Turret

All about creating levels and level sets, custom elements and custom artwork.

Moderators: Flumminator, Zomis

Post Reply
User avatar
Alan
Posts: 661
Joined: Fri Jun 18, 2004 7:48 pm

Working Gun Turret

Post by Alan »

This follows on from this thread: viewtopic.php?t=380

It is possible to make a stationary (or moving) gun turret that aims at the player, and only using 4 CEs! (and very little change pages). It also doesn't use any new commands and can run in RND 3.1.1.

http://www.ambience.2restinpeace.com/Turret.zip

You have turret 1, it moves towards the player, but with it's speed set to none. After a random delay, Turret 1 turns into an invisible fast moving bullet and uses the "previous" direction. Now the crafty bit..

This bullet leaves behind "turret 2" (which will be over turret 1) Turret 2 also moves like 1. Now all we do is check in the invisible bullet if it is touching turret 2, if it is then turn it into a real visible bullet! This bullet also uses the previous direction...

Turret 2 turns to turret 1 after a delay (so 2 is it's shooting animation), and that's it!

It's amazing what you can do with CEs, seemingly impossible things are possible to do.......you just have to try it different ways! (Something we should all bear in mind before requesting new features)

Anyway, I never set out to make a turret..... it is actually part of something else. ;-)
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

Cool stuff -- and it really works!! :-)

Tried to do this by myself already, but failed -- it did not work right in too many situations... But this one is nice and simple and works quite fine! :-)
Post Reply