Author Topic: Event Help  (Read 656 times)

Okay, I'm making a challenge where, at the end, some guy shoots fireballs at you. The guy is about here in the Bedroom:



         X  <- Guy is here
         i
         i   \/ Fireballs go this way
         i
         i <- You are Here
-------------------------------------I
                                              I  <- Cabinet by wall
                                              I

So the problem is, I can't get the correct input to ONLY shoot the fireballs towards where the player is. They instead, go high up, towards the player, then loop and hit him in the face (not what I want.) This will be locked as soon as someone tells me how, like

[10]  [10] [10]      [10] [10] [10]. Okay? Thanks.

The problem is that the first 3 boxes are how fast it goes in which direction. 0 0 10 will send it straight up, 10 0 0 will send it like, East (I think...). The next 3 boxes however, these determine how much those vary, randomly.
So having 0 0 0 then 10 10 0 will have it go in any random direction, but not up or down.
There is no way to have it shoot at the player without using spawnLockedProjectile, or having the floor tiles say onPlayerTouch -> <NAMED BRICK> -> spawnProjectile (Velocity to hit where the player is) FireBall (Have a little bit of spread if you want?)

Well, that's not exactly what I meant. I mean, it can go sideways from the guy, or towards the guy, but how about away from the guy?


     X  <- Guy
 

    \/  <- Direction I WANT the projectiles to go in 

Maybe it's best to explain the boxes:

The first one is north/south velocity. I think this is what you want to change
The second one is east/west
The third one is up/down, so you want that at 0.

Fourth one is north/south variance. If this is 0, it'll always shoot at the first box's speed. If it's set to something, it'll add a random number to the north/south velocity.
Fifth is east/west,
Sixth is up/down, and again you don't want this

So I think what you may want is

[-10]
  •      
  • [5]


Or something similar.

Well, I tried

[15]
  • [5]


It had the general effect I wanted... in the wrong direction.

\/ Turret
*  -> Direction the fireballs went in.


And it needed a bit more height (the projectiles need to be able to bounce off of things).



Wtf, [ 0 ] is messed

Try -15

For the fire balls to bounce try to use

onProjectileHit > Projectile > bounce > 1.000 <bar]

For the fire balls to bounce try to use

onProjectileHit > Projectile > bounce > 1.000 <bar]
quote edit: must be on the floor/wall that the projectile will bounce off of.

-15 makes it go LEFT. I need it to go down.

The X axis (the first box) is east (+X) and west (-X) for emitters/etc. East is towards the door, west is to the window in the Bedroom.
The Y axis (the second box) is north (+Y) and south (-Y). North is towards the poster.
The Z axis (the third box) is up (+Z) and down (-Z).

The second three boxes are variance in each direction, so that you can have 'spread' effects.

Setting them to [0, -30, 0] and [2, 2, 2] should make them go away from the poster (and towards you, if I have the direction right), with a bit of spread. If I've got this wrong, tell me which way it does go so I can figure this out.