Shooting in different angles and rotating actor in actual direction

HunnenkoenigHunnenkoenig Member Posts: 1,173
edited November -1 in Working with GS (Mac)
First I wanted to post this into my other laser rotating topic, but then I thought, it doesn't really fit there, so I start a new one. Sorry :-)

I have lasers again, but there are too many from different actors, so I can't use FMG's demo for it, because I can't use two actors for every single laser to determine angle and path.

The problem is:
I have short laser beams, which spawn on a fix point. They are rotated in the middle to get their direction, but then I have to move them in this exact direction.

They have no target, they just are shot into the space.

I can't use vector to angle because I have no second point to determine.

Any advice, if it is doable and how?
I tried to look for shooter games on GS, but I found nothing suitable :-(

Comments

  • synthesissynthesis Member Posts: 1,693
    Don't spawn...RECYCLE EXISTING LASERS
    Use alpha switches to make them appear and disappear.
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    that is not possible in my case.

    This is what happens:

    I have small ufo instances from one main actor. These ufos are the bricks in the wallbreaker game.

    The ufos have weapons, which shoot lasers to the bottom, but it is only a little thing to spice up the scene. It has no function.

    So the laser has to move to the bottom and disappear. But for better looking, I want the lasers to move in different angles to the bottom.

    I hope, you can imagine, what it should look like, then you understand what my problem is :-)

    If I have 20 of these instances, which are being destroyed by the ball one by one, I can't only set alphas. Every ufo must shoot short beams, like in star wars.
  • synthesissynthesis Member Posts: 1,693
    Control the laser count and recycle...otherwise you'll kill the processor.
    make an actor 3 UFOs instead of 1.
    make a laser 2 beams instead of one....use scaling.

    Find a creative solution to SIMPLIFY it but still achieve the desired effect.
Sign In or Register to comment.