Problem with constrain and release outside

Benjamin_m5Benjamin_m5 Member Posts: 646
edited April 2012 in Working with GS (Mac)
Hey there everybody

I'm working very hard on my new game. Now I've a little problem with a constrain behavior.

Constrain behaviors:

max((0+( self.Size.Width /2)),min((320-( self.Size.Width /2)), game.Mouse.Position.X ))
max((304+( self.Size.Height /2)),min((480-( self.Size.Height /2)), game.Mouse.Position.Y ))

Now when I release my actor outside this area (X0-320 and Y304-480) it won't fall to the ground.

I described my problem in a short video here too:


I hope someone can help me :)
---
Benjamin

Best Answer

Answers

  • Benjamin_m5Benjamin_m5 Member Posts: 646
    edited April 2012
    sorry but i can't open that GS-project file...i have the gs-version 0.9.0
    can you describe it for me please? :)

    EDIT: Will update my Creator and will see :)
    ---
    Benjamin
  • MantoManto Member Posts: 796
    Tell me if you need me to do it in 0.9.0 or something.
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    i've updated my creator and can open it now...that should help.
    Thanks very much :)
    ---
    Benjamin
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    Hey there

    I've made all the rules the same as you did in your GS-project but it doesn't work in my game...don't know why. Can anyone help? :)
    ---
    Benjamin
  • MotherHooseMotherHoose Member Posts: 2,456
    left message on your site… but wrong topic! :-B … still will look at your project for you … and try to figure out where/why the release mouse/touch isn't working as you want

    image MH
  • MantoManto Member Posts: 796
    edited April 2012
    Hmm... strange... How did you code the red area? @Benjamin_m5
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    edited April 2012
    @MotherHoose email sent :)
    @Manto1 will describe it to you as soon as i'm at home
    ---
    Benjamin
  • Benjamin_m5Benjamin_m5 Member Posts: 646
    edited May 2012
    Hey there...found a very simple fix for my first problem. But i've found a second bug :( Hope someone can help me



    EDIT: Good news guys...have fixed the second problem too :) Will post more to about this project soon!! :D Thanks to all
    ---
    Benjamin
Sign In or Register to comment.