What am I missing here?

CaptFinnCaptFinn Member Posts: 1,828
edited July 2013 in Working with GS (Mac)
In the pic below. I have a ship attempting to pass through a section of the game and avoid a laser beam. But if the ship gets hit or if the ship flys through the laser beam. Im wanting it to take damage and for about 4 secs flash red and maybe flicker its alpha. Then after the 5 secs go back to being undamaged. Also during the flashing phase. it cant take more damage.

The laser in interploating down the passage way. But no matter whay I do I cant get the 2 to interact with each other.

Ive tried

if ship collides or overlays

change self color to red.

But nothing happens. I dont want any actual collision. IM relying on the overlay.

Can someone point me to a video that might cover this.

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    try removing the interpolation and see if that works as a test. I remember reading that interpolating objects have difficulty with overlays orcollisions, but I forget which.
  • -Timo--Timo- Member Posts: 2,313

    Ive tried

    if ship collides or overlays

    change self color to red.

    do you have if ship collides or overlaps with laser
    do
    change self.color.red to 1?

    if this is not working I think you have them in a other layer...
    make another actor and place it in the same layer as the laser.
    and constrain his position to the ship
    good luck
Sign In or Register to comment.