Author Topic: How to do a three-shooting gun  (Read 1282 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
How to do a three-shooting gun
« on: December 09, 2020, 11:25:42 AM »
Making some good stuff requires you of very peculiar systems. For example, I've made a weapon that shoots 3 different bullets, one homing, one normal and one with gravity, and all of them in different directions.

How I've done it? Well, magic is not the way. I've made an invisible and ie enemy (ie stands for ignore environment) which is spawned when the normal projectile, the one that we shoot is created.
Code: [Select]
spawn enemy X, self
Now, the enemy when created will make itself invisible and ie, and then, shoot:
Code: [Select]
enemy visible = false
enemy = ignore environment

//-> Shooting commands. I don't recommend you to use directly the enemy shooting settings,
// cuz it will make projectiles damage player. (I don't have the commands here)

//Check also for the direction of the player

Then just add a remove enemy command in the fire projectile cp.
Hope this teachs you something. Cya.
« Last Edit: December 09, 2020, 11:26:27 AM by Antikore »
Sorry because my English is not very good because I'm Spanish ;) :P