Author Topic: We can't change projectile direction with commands  (Read 2141 times)

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
We can't change projectile direction with commands
« on: December 23, 2019, 03:27:55 PM »
This would be a great idea
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

saiwong3268

  • Level 6: Milder
  • *
  • Posts: 119
    • View Profile
Re: We can't change projectile direction with commands
« Reply #1 on: December 23, 2019, 03:38:10 PM »
you should be able to do this with projectile direction command

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: We can't change projectile direction with commands
« Reply #2 on: December 23, 2019, 04:48:00 PM »
Did it worked for you?
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

saiwong3268

  • Level 6: Milder
  • *
  • Posts: 119
    • View Profile
Re: We can't change projectile direction with commands
« Reply #3 on: December 23, 2019, 05:21:32 PM »
I tested it on one of my projects but could not get the command to work. Not sure if
this is a bug or if command only works on spawned projectiles (rather than default projectiles fired
from enemies). Best ask Ting Thing.

Also on this subject of enemy projectiles. The options for enemy fire is : Slow, Medium, Fast, Very Fast
it would be great to have Random option. This will allow enemies to fire projectiles at different/random times/rates

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: We can't change projectile direction with commands
« Reply #4 on: December 23, 2019, 06:51:19 PM »
I already know the answer. It's simple. The projectile direction only works when the projectile is fired. Not while it's moving about.

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: We can't change projectile direction with commands
« Reply #5 on: December 23, 2019, 09:21:03 PM »
So we need a method to change fire direction and method.
Something like "projectile dir = facing/cursor/etc..."
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: We can't change projectile direction with commands
« Reply #6 on: December 23, 2019, 09:34:55 PM »
Just use a timeline with conditionals constantly checking those things.

saiwong3268

  • Level 6: Milder
  • *
  • Posts: 119
    • View Profile
Re: We can't change projectile direction with commands
« Reply #7 on: December 27, 2019, 05:54:39 PM »
Is it possible for enemies to have random fire rates using timelines ?
If so, how is this done ?

How do you setup looping timelines ?
(do you make a timeline call itself as last instruction?)

Also, I know you can setup the enemy fire rates, but is there a way to set the
Player1/Player2 fire rate  ?

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: We can't change projectile direction with commands
« Reply #8 on: December 27, 2019, 06:03:11 PM »
To create a looping timeline, you just type in, "timeline (ID) position=" then reset it's position to wherever you want. This command does not have to be the last. You could create a variable so that whenever it randomly selects a number, it will make the enemy fire a projectile. Just type in enemy (ID)= fire. As for P1/P2 fire rates, you can do the same thing as with enemies using timelines and random variables.

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: We can't change projectile direction with commands
« Reply #9 on: December 27, 2019, 07:32:22 PM »
But I just said that strangely, we can select the projectile fire direction in ranged attack settings, but there's no command to change it. When the other's ranged attack settings have a command.
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: We can't change projectile direction with commands
« Reply #10 on: December 27, 2019, 07:33:05 PM »
He asked about firing rates. Not directions.

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: We can't change projectile direction with commands
« Reply #11 on: December 28, 2019, 11:01:37 AM »
He asked about firing rates. Not directions.
But I said this about what I asked before him.
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: We can't change projectile direction with commands
« Reply #12 on: December 29, 2019, 07:39:43 PM »
Ah.