CP - Alien Breed Remake - 9

Miscellaneous Forums/Blitz Showcase/CP - Alien Breed Remake - 9

It's not too hard to create the switched door. Simply create a new object in the editor where you want the switch. Set the image to be the 'off' switch, and make sure it is marked as 'visible'. Determine the x,y location of the door, and in the onaction script for the switch, just call opendoor(x,y). You'll also want to set the switch to the 'on' image as before.

The 'scripted event' in the cells is neat because it's exactly the same idea, apart from the trigger is onover, and it opens 6 doors. The other part of the trick here is that once an object is created, you can place it again and again, hence you'll find that object exists on four tiles in a row (to ensure you can't sneak past it). The only extra bit needed then is to add remove(nearby) to the onover script which ensures it only gets fired the once. (nearby means remove all adjacent objects of the same id).

Hope that helps, it's really not that hard, and now they're in I can start working on more script commands / triggers to really liven things up! ;-)))