User Tag List

Results 1 to 4 of 4

Thread: Very important question

  1. #1
    No Products Registered

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

    Very important question

    I need this answered for a game I'm making, no idea if its really that complicated or not, but I sure can't figure it out.

    In most platforming games, after you get hit by an enemy, your character will flash for about 2 seconds and you are invincible for that time. This prevents bouncing off of enemies and dying instantly (if your character is knocked back when hit) or getting hit numerous times by an enemy that is coming towards you very fast. I could just restrict the hitting action for a short time, but it would seem glitchy unless the character was flashing after being hit, and you wouldn't be able to tell how long your invincible. Ive tried the "flash object" action, but my character just turned invisible instead. thanks for any help

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Very important question

    You can turn on a flag during an amount of time and then turn it off. Then you add to the condition, that player get hit only when flag is turned off. It would work something like this.

    If enemy collides with player
    + has flag 0 turned off
    --------------------------------------> Turn flag 0 on, take damage etc.
    Then in another event, you turn flag off every 3 seconds or so.

  3. #3
    No Products Registered

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

    Re: Very important question

    Awesome I figured it out, works perfect thanks man.

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Very important question

    A slightly more reliable technique would be similar but:

    +Enemy collide with player
    + value a = 0
    Set value a to 100 and take damage etc


    +Value a > 0
    Subtract 1 from value a

Similar Threads

  1. Important question (Bachelor's work)
    By Fanotherpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 20th March 2012, 11:25 AM
  2. An easy but important question...
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 15th March 2011, 07:00 PM
  3. Important Extension List question!
    By Fanotherpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 3rd December 2010, 10:42 AM
  4. Important question
    By dylan99379 in forum The Games Factory 2 - Technical Support
    Replies: 8
    Last Post: 8th December 2006, 03:53 AM

Posting Permissions

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