User Tag List

Results 1 to 7 of 7

Thread: Single Image Movement Blocking

  1. #1
    Clicker Fusion 2.5 (Steam)
    Faherya's Avatar
    Join Date
    Mar 2018
    Location
    Brazil
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Single Image Movement Blocking

    Hello, guys! How are you? I'm trying to create a little game similar to this one. To define the areas where the player and the enemy can move, I created the following image that I have used as an obstacle:


    For movement, I use the basics: (While the K key is pressed: Change position of the object? + -XY N pixels). However, when I try to block the player's movement, the background image is ignored. The condition is also simple: (If the object 'Player' collides with 'Image': Stop the movement of 'Player'). I also tried to stop the movement when 'Player' is over the image, but with the same result. The project file is attached. Ah, taking the opportunity: the player and the enemy have a HUD. To update the HP level, I resize a rectangle that simulates the health bar. However, in the formula I used the animation is very abrupt. Maintains the same position for various values and, when reducing, reduces in large blocks, instead of reducing point by point. What would be the best formula to make the bar softer? To facilitate testing for anyone who can help, here are the game commands - and two images because ... Why not?


    WASD moves the character. Aim at the enemy with your MOUSE and shoot with the LEFT BUTTON. During DEBUG, the X key increases the character's speed. Ah, all images are placeholders. Thank you in advance!
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2015
    Posts
    16
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Use the active object as a collision sensor instead of the background.

    And replace object player shield (HP) to the object Counter and set type display to Horisontal Bar.

    P.S I hope I translated correctly. English through a translator

  3. #3
    Clicker Fusion 2.5 (Steam)
    Faherya's Avatar
    Join Date
    Mar 2018
    Location
    Brazil
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you. I also use a translator, but we understand each other well haha. The "Counter" object worked perfectly, I had never tested it. Now, the lock image is an "Active" object, not a background.

  4. #4
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2015
    Posts
    16
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

  5. #5
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2015
    Posts
    16
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I understood. Incorrect operation due to Movement type Physics 8 Directions

  6. #6
    Clicker Fusion 2.5 (Steam)
    Faherya's Avatar
    Join Date
    Mar 2018
    Location
    Brazil
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes that's right. I do not know if there is another way to move the player to replace this model and that does not cause the problem. Thank you very much for the answers.

  7. #7
    Clicker Fusion 2.5 (Steam)

    Join Date
    Dec 2015
    Posts
    16
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    https://yadi.sk/i/0Xbyv0fTmvE9vA
    Create another type of movement and change it when necessary.
    There will be two types of movement in one object. The first one has 8 directions, and the second one is static.

Similar Threads

  1. Blocking out Mouse Movement to use the debugger
    By Jusfury in forum Fusion 2.5
    Replies: 3
    Last Post: 22nd December 2018, 02:50 PM
  2. Clickteam Movement Controller only single instance?
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 18th November 2011, 01:00 PM
  3. Blocking Animation
    By Jayboi in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th April 2011, 03:25 PM
  4. make swaying grass from a single image?
    By BrashMonkey in forum Hardware Accelerated Runtime
    Replies: 23
    Last Post: 13th December 2008, 01:42 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
  •