playMaker

Author Topic: Shooting Projectile ONLY on X  (Read 1128 times)

gregacuna

  • Full Member
  • ***
  • Posts: 143
Shooting Projectile ONLY on X
« on: November 21, 2019, 01:16:33 AM »
I'm using Corgi Engine and Unity for the new platform game. As I'm setting up the player I want to animate projectiles coming out of the player's hand which is animated with a swish forward. I have added an empty game object to the hand bone so the projectiles are emitted from there.

PROBLEM: The projectiles (2d sprites) are heading in the direction of the rotation of the empty connected to the hand bone. As can be seen in the screen capture show the view from TOP. The projectile is not moving straight forward from the character.

NEEDED: I want to have them go straight forward depending on the direction the player is facing staying on a line along the X axis without any deviations on Y or Z. I've tried several ideas, but even when I get a straight line it is going off at an angle instead of horizontal and in line with the view.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Shooting Projectile ONLY on X
« Reply #1 on: November 21, 2019, 02:51:43 AM »
Hi,

 maybe this sample on the ecosystem is the key for you:



Bye,

 Jean