How to rotate actor and emit laser beam from it?

wolala123wolala123 Member Posts: 249
i have circle actor which can rotate.My problems is how to rotate any angle and emit laser beam from it?For example, rotate actor estimate 45 degree and emit laser beam 45 degree.thanks.

Comments

  • WingmanappsWingmanapps Member Posts: 458
    Create a new real attribute - called Angle

    On your rotating circle:
    Contrain game.angle to self.rotation

    Create new rule:
    When touch is pressed

    Spawn new actor
    Actor - laserbeam
    Direction - game.angle
    Spawn behind actor
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Here is another method of a rotating actor shooting, use the arrow keys to rotate clockwise and counter clockwise and the space bar to shoot.
Sign In or Register to comment.