Suggstion Please!! How to make actor being draged and throw only one

sky_ssrsky_ssr Member Posts: 58
edited November -1 in Working with GS (Mac)
I want to make the actor drag and throw only one time, then the actor will not be able to be touched again

Thanks

Comments

  • sky_ssrsky_ssr Member Posts: 58
    ANYONE?????????????
  • sky_ssrsky_ssr Member Posts: 58
    sky_ssr said:
    I want to make the actor drag and throw only one time in a specific area when the actor leaves the area, the actor wont be able to touch again,
    Thanks

    sky_ssr said:
    I want to make the actor drag and throw only one time, then the actor will not be able to be touched again

    Thanks

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Please dont bump your thread 3 times in 30 minutes

    for your question look at this

    http://gamesalad.com/game/1774
  • sky_ssrsky_ssr Member Posts: 58
    Thats not what im looking for, what im looking for is there is a red line crossing the screen, when i drag the actor across the line, the actor wont go, the actor will go pass that line only when you throw it
  • sky_ssrsky_ssr Member Posts: 58
    Thanks for helping but I don't understand abt self.hitredline, (I can't find hit) how to get it do I create a new attribute, if yes what kind
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    sky_ssr said:
    Thanks for helping but I don't understand abt self.hitredline, (I can't find hit) how to get it do I create a new attribute, if yes what kind

    you need to make it and make it a boolean
  • sky_ssrsky_ssr Member Posts: 58
    i dont understand how to do "then on the rule that makes it drag say it can only drag if self.hitredline to false"

    Thanks
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    sky_ssr said:
    i dont understand how to do "then on the rule that makes it drag say it can only drag if self.hitredline to false"

    Thanks

    Go here
    http://gamesalad.com/forums/topic.php?id=13752

    Watch the welcome to gamesalad video, the working with attributes one, making actors and other beginer ones.

    You need to get an understanding of how the software works
  • sky_ssrsky_ssr Member Posts: 58
    i watched almost all of those videos, i just dont understand how to say it can only drag if self.hitredline to false"
  • sky_ssrsky_ssr Member Posts: 58
    Please tell me the steps
  • EminemEminem Member Posts: 667
    can he not use an integer for this?

    make an integer attribute once released change integer to 1

    then it wont be able to be touched released

    if i understand your question correctly
  • sky_ssrsky_ssr Member Posts: 58
    No I wAnt to make actor draggable and throwable in a area but when it pass the red line, the actor cantbe touched
  • EminemEminem Member Posts: 667
    ok when actor collides with red line change attribute to 1

    and for the draggable code put it in an integer of 0
  • sky_ssrsky_ssr Member Posts: 58
    Thanks for replying Eminem but i want my actor to be able to throw only in the left area but when the actor passed the redline, the actor cant be touched

    Thx
  • FreiGamesFreiGames Member Posts: 158
    sky_ssr said:
    Thanks for replying Eminem but i want my actor to be able to throw only in the left area but when the actor passed the redline, the actor cant be touched

    Thx

    That's what he did in the demo!
  • sky_ssrsky_ssr Member Posts: 58
    No, it needs to throw the actor and keep the motion going but in the demo the motion stops
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you need to take the first demo i posted, and add the rules for when you cross the red line that eminem put in his demo
  • sky_ssrsky_ssr Member Posts: 58
    i already got the throwing thing working but i want the actor to be untouchable after the actor passed the red line

    Thanks
  • hackmodfordhackmodford Member Posts: 48
    On the part of your code that actually throws the actor you need a rule that will detect if the actor has collided with the red line.

    So make a rule that says
    If actor x > than line x
    Set Boolean value to 1
    Otherwise
    Set Boolean value to 0

    Then in your throwing code add a rule that checks on that value.
    Or better yet just add a rule that checks if the actor x is lower than the line x

    This is all assuming your throwing from left to right and the line splits the screen in the middle.

    Hope that helps :D
Sign In or Register to comment.