Shockwave Effect ???

PeeCeePeeCee Member Posts: 107
edited March 2012 in Working with GS (Mac)
hi all.
Im looking into create an effect like a shockwave effect when a bomb or blast takes places then a simulated shockwave
is created which throws other actors/objects around.

any help or advise would be really appreciated.

Comments

  • PeeCeePeeCee Member Posts: 107
    Hi FBS. thanks for that, but thats not quite what im after. i want to be able to have
    other actors get thrown around when lets say the primary actor blows up. I can work out triggers and logic etc, but how do i get other actors around the primary actor (who will be the bomb lets say) be thrown around a scene etc.
  • MotherHooseMotherHoose Member Posts: 2,456
    easiest I can think of:
    create an actor bombRadius
    either drag on an image effect … or uncheck visible

    have bomb spawn the bombRadius when exploded

    have other actors overlap/collide with bombRadius
    to trigger their movements

    sorta nice effect:
    Rule: when
    Event: overlaps/collides with bombRadius
    -changeAttribute: self.Rotation To: 90
    -changeAttribute: self.Motion.Linear Velocity.Y To: 200
    -Rule: when
    -Attribute: self.Position.X > 240
    --changeAttribute: self.Motion.Linear Velocity.X To: 200
    --Otherwise: changeAttribute: self.Motion.Linear Velocity.X To: -200

    @};- MH
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    How about changeAttribute self.Motion.Linear Velocity.X/Y to something like 50*300/magnitude(explodingActor.position.X-self.position.X,explodingActor.position.Y-self.position.Y)? That way the velocity is variable depending on the actor's proximity to the exploding actor.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.