User Tag List

Results 1 to 7 of 7

Thread: Custom Lifebar Question

  1. #1
    Clicker Fusion 2.5
    darkmanx_429's Avatar
    Join Date
    Jun 2010
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom Lifebar Question

    I followed a lifebar tutorial on this channel: http://www.youtube.com/watch?v=7wqb9...wRCbq5&index=6

    I have a problem, how would you make you custom lifebar follow the camera for a 2D platformer? I tried connecting it to the hotspot to the player sensor but then the lifebar shadows your every movement and moves with the character. My my playfield camera size is 320 X 240. I also tried setting the x and y coordinates but the lifebar stays in place even when the character moves. In this case I am trying to use it for a vertical stage but either way it needs to follow the character as he moves around any stage.

  2. #2
    Clicker Fusion 2.5 Developer
    LavaFlaminG6's Avatar
    Join Date
    Dec 2011
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're going to want to open the object properties and un-check "Follow the frame". It's X and Y co-ordinates will apply to the screen instead of the virtual space. This will stop it from acting as an in-game object and instead it will act like the HUD I assume you're looking for. =)
    Good luck.

  3. #3
    Clicker Fusion 2.5
    darkmanx_429's Avatar
    Join Date
    Jun 2010
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RE:

    I tried that, however it didn't work. Is it because of the fact it's not an active object but a counter using animation? It seemed to do the unfollow function, however when I move vertical in the stage with my character the lifebar does not follow, it stays static. I am trying to figure out a way that the lifebar is always visible in the play area no matter where the player moves too. If I remove the x and y coordinates from the event editor obviously the lifebar disappears completely.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just incase this is the issue - the counter needs to be positioned at the top left of your frame, in the first 320 x 240 area on the screen, rather than you positioning it whereever your character starts in the frame. Then untick 'follow the frame' and get rid of your X-Y events etc, and it should be ok.

    I mention this as you say 'when your character goes up' which suggests you do not start at the top left of the frame :P

  5. #5
    Clicker Fusion 2.5
    darkmanx_429's Avatar
    Join Date
    Jun 2010
    Posts
    365
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RE:

    That doesn't work. Remember, I previously mentioned that if i don't use x or y coordinates the lifebar doesn't appear when I start in the frame even though it's placed in the frame editor. I tried using the "create" and "always" function to the current layer so that it appears in front of everything which worked, but then it makes multiple lifebars because the always function is turned on. I guess I have to play around with the commands some more so that it only initally creates the lifebar and then stays on screen the whole time. If anyone can help me in that regard that would be cool..

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't need any events to keep it in position to simply follow the frame, as I said, Which means you don't need x or y, so there is something else you are doing if it isn't appearing.

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Post an MFA. It will be solved in under 24 hours.

Similar Threads

  1. Lifebar issues
    By darkmanx_429 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st November 2013, 04:22 PM
  2. Problem with lifebar
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd September 2013, 12:04 PM
  3. Lifebar help...
    By Amir in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th July 2013, 09:39 AM
  4. Circular lifebar
    By Blackwolfdave in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 7th August 2012, 05:40 AM
  5. Lifebar.
    By Valerien in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 3rd August 2008, 09:42 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
  •