User Tag List

Results 1 to 5 of 5

Thread: grabbing enimys

  1. #1
    No Products Registered

    Join Date
    Jun 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    grabbing enimys

    lets say u wanted to grab an enimey. as long as u had the button down. u wouldnt move. nor would the enimy but if u pressed a direction u would throw em to the left or right how would u do that?

  2. #2
    No Products Registered

    Join Date
    Oct 2006
    Location
    Germany
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grabbing enimys

    For the enemy: once you grab the enemy set a flag on. Whenever that flag is on stop the enemy's movement.
    For the Player: Same thing, only it also checks if you are pressing left or right. When you do, set both the enemy's and the player's flags to off.
    As for throwing, it depends on what movement you are using.

  3. #3
    No Products Registered

    Join Date
    Jun 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grabbing enimys

    can u be a little more descriptive?

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Location
    Germany
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grabbing enimys

    Sorry. I can't be much more specific until I know how you've programmed the rest of your engine.

    I'll try explaining it again, though. I'm assuming that whenever the player is close to the enemy and you push a certain button you want him to grab the enemy? When that happens set one of the enemy's flags to on (let's say flag 0). When the enemy's flag 0 is on make him do whatever it is you want him to do when being held, like stop moving, change animation, or something. The flag is simply used, so the game knows whether the enemy is being held or not.

    For the player, whenever you grab an enemy set flag 0 (or any other number) to on, so the game knows you are holding an enemy. Now when you press left or right make the player throw the enemy and set both their flags back to off.

    Again, for throwing I'd need to know how the rest of your engine works. Are you using a built-in movement or a custom one?

  5. #5
    No Products Registered

    Join Date
    Jun 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: grabbing enimys

    im using the plaform movement. but im planning on making my own movement soon. but yea, im using the patform one. like if my guy reachs out and grabs someone. and i press up for example. i could walk around with hhim then throw em. or if i grab em and press left i could throw em behind the player. or for down he would throw em down and stomp him

Similar Threads

  1. Grabbing animation from active
    By dcrew in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 12th March 2011, 08:33 PM
  2. Ledge grabbing
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th February 2010, 06:01 AM
  3. Keep grabbing the desktop?
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 16th February 2008, 06:09 PM
  4. Grabbing the Desktop
    By Eliyahu in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th November 2007, 01:51 AM
  5. need help grabbing things
    By Taco in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd June 2007, 01:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •