User Tag List

Results 1 to 3 of 3

Thread: Path movement alternative for simple obstacle

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2009
    Location
    Australia
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Path movement alternative for simple obstacle

    Hi
    This is probably a really basic thing to do but I'm not quite sure where to start with it.

    I want to create just a very simple obstacle for my platform game where a blade moves up and down between two points pausing momentarily before it reverses its direction. Initially I had hoped to just use a path movement for such a task but for some reason duplicates with the path movement tend to move out of sync when there is scrolling involved and it's kind of important that they aren't all doing their own thing so that I can design my levels to actually be passable.

    Any thoughts or suggestions would be very much appreciated
    Thanks

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Path movement alternative for simple obstacle

    Disable "inactive when out of frame" on the object, and they should all move together.

  3. #3
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Path movement alternative for simple obstacle

    I would suggest using Alterable Values for that:
    Code:
    -Alterable Value A of Blade = 0 - Set Blade Y position to Blade Y-1
                                      Add 1 to Alterable Value B
    
    -Alterable Vale B of Blade = 30 - Set Alterable Value A to 1
    
    -Alterable Value A of Blade = 1 - Set Blade Y position to Blade Y+1
                                      Subtract 1 from Alterable Value B
    
    -Alterable Value B of Blade = 0 - Set Alterable Value A to 0
    If the Alterable Value A = 0, then the blade moves up, until it moves 30 pixels (the number of pixels it already moved is stored in Alterable Value B). Then the Alterable Value A switches to 1 and the blade starts moving down, until it moves 30 pixels back down, the Alterable Value A switches back to 0 and the movement loops.

Similar Threads

  1. 8dir movement and obstacle collisions
    By Raphael in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th August 2012, 04:05 AM
  2. How to make path movements without path movement?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th February 2012, 06:49 PM
  3. Path Maker (Advanced Path Movement) for BIG levels
    By StingRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd June 2010, 02:14 PM
  4. Advanced Path Movement "Path Maker"
    By Jarzka in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th September 2009, 09:00 PM
  5. Path Maker for Advanced Path Movement
    By Willi Leopold in forum Extension Development
    Replies: 9
    Last Post: 15th November 2006, 03:23 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
  •