Jump to content


Photo

Throwing Objects


  • Please log in to reply
2 replies to this topic

#1 therealjmc

therealjmc

    GMC Member

  • New Member
  • 2 posts
  • Version:GM:Studio

Posted 14 December 2012 - 09:56 AM

Basically what I'm trying to do is get the player to run over an object, add it to the "inventory" and then have a key press to throw the item.

I'm having alot of trouble where if I press W in my game it will shoot the hammer fine but once I pick it up, I'm no longer able to shoot. Also the hammer is firing from the position on the map as opposed to the player.

Any help would be greatly appreciated.

Here is the link

Would love to fix it, preferably using the drag and drop method. This is rage inducing atm.

Edited by therealjmc, 14 December 2012 - 10:23 AM.

  • 0

#2 Naygath

Naygath

    GMC Member

  • GMC Member
  • 495 posts
  • Version:GM:Studio

Posted 14 December 2012 - 11:30 AM

here you go, fixed ---> http://www.mediafire...yykc18w1w39y94x

the problem was that when you try to create the hammer it is destroyed because it collides with luigi, simple huh? also added a variable global.hammer, if it is 1 you can throw a hammer, if it is 0 you dont have hammer so you cant throw it, it is changed to 1 if you pickup the hammer.
  • 0

#3 therealjmc

therealjmc

    GMC Member

  • New Member
  • 2 posts
  • Version:GM:Studio

Posted 15 December 2012 - 05:32 AM

Thanks alot, that worked perfect!

My game has come pretty far since, only thing I can't figure out is how to make Mario not look like he is floating when he is "jumping" on the path. Would love some help with that

Here is the link
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users