Author Topic: Shoot command  (Read 1043 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
Shoot command
« on: October 02, 2018, 04:10:23 PM »
I think a shoot command will be very cool, for example, I though on a way to shoot a projectile to a pre-selected direction etc.

Example:
============================================
projectile direction = left
projectile damage = characters
shoot = 1
============================================
That will shoot the projectile to the left that will do as if an enemy shooted it from the point where the command is called.
If I call this shoot command in a projectile hit wall command prompt, when that projectile hits a wall, will shoot another projectile with id 1 to the left and will damage and follow characters (If the projectile has that configuration).

Another example:
============================================
bullet direction = towards character
bullet damage = any
enemy 1 shoot = 5
============================================

This will make any enemy 1 in the screen shoot the projectile with ID 5 towards the character and will damage characters and enemies.

Hope you understand

Finally, these are the ways I think will be good to work:
============================================
projectile direction [or] bullet direction || = || left, right, up, down, left-up, left-down, right-up, right down, towards character, towards enemy, approximate character, approximate enemy.
============================================
projectile damage, projectile hurt, bullet damage [or] bullet hurt || = ||  characters, enemies, characters and enemies, blocks, characters and blocks, enemies and blocks, any.
============================================
shoot - = - (Projectile ID)
enemy (ID of the enemy that will shoot the bullet) shoot = (Projectile ID)
npc (ID of the NPC that will shoot the bullet) shoot = (Projectile ID)
player (1 or 2) shoot = (Projectile ID)
item (ID of the item that will shoot the bullet) shoot = (Projectile ID)
block (ID of the block that will shoot the bullet) shoot = (Projectile ID)
projectile (ID of the projectile that will shoot the bullet) shoot = (Projectile ID)
spawn (ID of the spawn that will shoot the bullet) shoot = (Projectile ID)
============================================
« Last Edit: October 02, 2018, 04:12:00 PM by Antikore »
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Shoot command
« Reply #1 on: October 02, 2018, 04:26:11 PM »
A lot of thinking!