User Tag List

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 34

Thread: An auto Scroller

  1. #1
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    An auto Scroller

    I have been wanting to make a game with an auto scroller, in which i can move my character around the frame, but everything else, like enemies, background, objects,etc. move to the left. My character will be the only object who is controllled in motion. The point of this is to make it look like the character (space ship) is moving to the right. I couldn't find anything about it in the search.
    Help would be greatly appreciated, thanks!

  2. #2
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: An auto Scroller

    Oh, and the only things not affected by the moving left would be the character, and any bullets. Bullets would just go in a straight line and not be affected by anything else.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: An auto Scroller

    Set the virtual width of your game to -1 and Always center the frame position horizontally in (X Left Frame + X Right Frame)/2+5

    I think that's how Jeff did it in his example, which I cannot find right now...

  4. #4
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: An auto Scroller

    Quote Originally Posted by RickyRombo
    Set the virtual width of your game to -1 and [color:#FF0000]Always center the frame position horizontally in (X Left Frame + X Right Frame)/2+5[/color]
    I think that's how Jeff did it in his example, which I cannot find right now...
    I don't get what you meen by center the window frame to (X time left frame + X times right frame) because what is X and whats the difference between left and right frame? and the /2+5, do you meen divide it by 2+5 or simplified /7 ?? I'm not sure about what to do. Help would be greatly appreciated, and thanks for the help so far.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: An auto Scroller

    Hmm?

    Thats an expression! X Left Frame is the X coordinate of the left visible edge of the frame. And the opposite side is X Right Frame. So basically get the average so you have the center of the screen. Then add 5

  6. #6
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: An auto Scroller

    Ok, so i clicked on the frame in the menu to the left, and i set virtual with to -1. Then i Went to always -> and then scrolling -> horizontal scrolling and then i typed in (X Left frame + X Right frame)/2+5
    But then nothing actually happenned when i played the frame. I had one backdrop in it and one space ship, but they both just stayed in the same place. Did i miss something or is something wrong, or what?

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: An auto Scroller

    hm I was wondering whether that would actually work...

    the virtual width thing is right... there's something that Jeff did in his example...

  8. #8
    No Products Registered

    Join Date
    Oct 2009
    Location
    California US
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: An auto Scroller

    Ok, so now it is working, but just one question. How do I slow down the speed of the scrolling and how do i make my own ship and my bullets fly without being affected by the motion going left. Thanks so far, its really great!

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Re: An auto Scroller

    That seemed to work for me. I set my virtual width to -1. I made an active object, with follow the frame of this object unchecked (to make sure it always stayed within the frame when the scrolling moved). My background was a backdrop type object. I did the (Left+right)/2+5 and that seemed to work for me.

    Maybe it has to do with your settings? I'm not sure.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: An auto Scroller

    Mmk now all you need to do to change speeds is mess around with the five on the end.

    I think if you create the objects instead of "launching" them, and their "Follow the Frame" property is unchecked, you can set their direction and speed and they won't be bothered by the scrolling... I think...

Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. Vertical Scroller
    By dsilvers in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 15th February 2017, 10:33 PM
  2. 2D Scroller Driving Game
    By Mojo_Bone in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th December 2009, 11:01 PM
  3. Question about top view scroller games
    By Hordolur in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 22nd July 2008, 10:55 AM
  4. Text scroller
    By Hordolur in forum Extension Development
    Replies: 5
    Last Post: 2nd July 2008, 05:46 PM
  5. Help need for top down scroller.
    By rezurrection in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th June 2008, 02: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
  •