How to grab and throw objects

famekraftsfamekrafts Member, BASIC Posts: 834
edited October 2012 in Working with GS (Mac)
I am trying to implement a grab and throw mechanism in my game, similar to project Boom, its obviously for a totally different game idea.

I tried looking here but could only find TshirtBooths long lost demo which he made for some one.

Its called tossreswawn. but that doesn't work for some reason.

Can anyone help me out?

Comments

  • Slogghah_GamesSlogghah_Games Member Posts: 29
    Well if I understand this correctly you want the actor to pick up a block and throw it when something is pressed.

    Well if I'm right. What you could do would be:
    If the button is pressed then constrain the object u want to pick up to the character, then when the button is pressed again you could make it so you un constrain the box. And the box move what ever way you want to throw?

    U can find how to interpolate actors together in one of tshirtbooths tutorials.


    I hope this helped Atleast a little bit
  • famekraftsfamekrafts Member, BASIC Posts: 834
    its not going to work with interpolation, some magnitude and velocity functions have to be used.

    It will be for ipad, so when touch is pressed on the object, it will stick to the fingers press area and can be thrown in any direction with any force when touch is released.

    I can grab it, but I am not sure how to throw it.

    if you have played project boom you will understand.
  • famekraftsfamekrafts Member, BASIC Posts: 834
    @uptimistik Thanks a lot man, trying it out right now.
  • famekraftsfamekrafts Member, BASIC Posts: 834
    I am having one problem, though it is good also as I need the object to behave such way in one stage.

    When the object is thrown it doesn't fall to the ground it keeps bouncing in the scene as if its floating in space.

    My game is a space game, so that is nice, but in other stages I need it to fall on ground.

    Can I do it by increasing the friction on the object or walls?
  • famekraftsfamekrafts Member, BASIC Posts: 834
    edited October 2012
    Great

    how to take off scene gravity? Its not getting switched off in attributes, neither getting deleted.

    I tried without switching of gravity and now its going and sticking to any of the four corners of the screen.

    Got an idea of another game with it. :)


  • famekraftsfamekrafts Member, BASIC Posts: 834
    Thanks will try it now.
  • alarm656alarm656 Member Posts: 291
    Here you go...
    Hello, this is GameSalad demo file?
  • alarm656alarm656 Member Posts: 291
    I can open it in GS?
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Yes, it is.
  • BobDBobD Member, PRO Posts: 374
    uptimistik - Help I can't download you throw.zip file. Any suggestions?
  • BobDBobD Member, PRO Posts: 374
    Nothing happens when I click on the file Safari. I also tried using Chrome and Firefox.
    I even tried using IE on Windows 8 with no luck.

    Anyone else having this problem?
  • famekraftsfamekrafts Member, BASIC Posts: 834
    Try cleaning your browser cookies and temp file and then try.
  • creativeappscreativeapps Member Posts: 1,770
    @uptimistik thanks for the demo. Its working fine in mac. @BobD its working fine in chrome.
Sign In or Register to comment.