can help but can kill too

CLAYCLAY Member Posts: 72
edited November -1 in Working with GS (Mac)
how to create a block which my main actor will use if he wants to go up higher but which this block will be fatal if he falls to him above....

Comments

  • ORBZORBZ Member Posts: 1,304
    check the y velocity of the block. if the block is falling the y velocity will be negative. if contact with the actor happens while the y velocity is negative.... splat!
  • CLAYCLAY Member Posts: 72
    lollipop thank you !!!
  • iDeveloperziDeveloperz Member Posts: 1,169
    lolipop?
  • CLAYCLAY Member Posts: 72
    @ iDeveloperz : his image is like a lollipop -_-'
    @ ORBZ : I completely understood what you want to say but I do not arrive to regulate it ...(I know... even in 6 days )

    the main question is : How should I make what you say in gamesalad rules...
  • CLAYCLAY Member Posts: 72
    anyone plz ?
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Create a game boolean attribute called splat

    in the block:

    RULE
    when self.linearY is < 0
    AND collides with main actor

    change attribute game.splat to true (1)

    in main player

    Rule:

    when game.splat is true

    animate (splat animation)
    Timer
    after .2 seconds
    destroy this actor

    something like that
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    @ idev - your avatar is SO much better! Your old one really bugged for some reason.
  • CLAYCLAY Member Posts: 72
    That's exactly what i did a long time ago and they only collide ... but after i made when self.linearY is < 320 it works but the other problem is that every time I collide whit it my actor dies
  • PowerKalistoPowerKalisto Member Posts: 34
    wow i don't know man !!
  • CLAYCLAY Member Posts: 72
    Guys this is really important for my game if you guys need money to do it just ask !... it's the last thing i need to finish my game so... If it's should be done ... i'll do it !
  • PowerKalistoPowerKalisto Member Posts: 34
    Wait I'm trying it !
  • PowerKalistoPowerKalisto Member Posts: 34
    No sorry I really don't know man ! ... it's like when i use self.position Y ( for the block ) i think the gamesalad think it's self = scene so ... I wanna know too how to do this !

    sorry man !!
  • CLAYCLAY Member Posts: 72
    Yeah same problem but thanks for trying . Any other one ?... PLEASE
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Got it!

    in shared projects look for this: "Block Falling Kill but can jump on"
  • CLAYCLAY Member Posts: 72
    OMG your not a human !! thanks REALLY MUCH !!!
Sign In or Register to comment.