Platform Builder Forums

Main => Suggestions => Topic started by: War on December 23, 2019, 03:27:55 PM

Title: We can't change projectile direction with commands
Post by: War on December 23, 2019, 03:27:55 PM
This would be a great idea
Title: Re: We can't change projectile direction with commands
Post by: saiwong3268 on December 23, 2019, 03:38:10 PM
you should be able to do this with projectile direction command
Title: Re: We can't change projectile direction with commands
Post by: War on December 23, 2019, 04:48:00 PM
Did it worked for you?
Title: Re: We can't change projectile direction with commands
Post by: saiwong3268 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
Title: Re: We can't change projectile direction with commands
Post by: CGM 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.
Title: Re: We can't change projectile direction with commands
Post by: War 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..."
Title: Re: We can't change projectile direction with commands
Post by: CGM on December 23, 2019, 09:34:55 PM
Just use a timeline with conditionals constantly checking those things.
Title: Re: We can't change projectile direction with commands
Post by: saiwong3268 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  ?
Title: Re: We can't change projectile direction with commands
Post by: CGM 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.
Title: Re: We can't change projectile direction with commands
Post by: War 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.
Title: Re: We can't change projectile direction with commands
Post by: CGM on December 27, 2019, 07:33:05 PM
He asked about firing rates. Not directions.
Title: Re: We can't change projectile direction with commands
Post by: War 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.
Title: Re: We can't change projectile direction with commands
Post by: CGM on December 29, 2019, 07:39:43 PM
Ah.