Automatic BG Scroll?

Discussion in 'Discussion and Q&A Archive' started by FireRat, Feb 4, 2011.

Thread Status:
Not open for further replies.
  1. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    Hi. Well, I created a cutscene, and it have a special effect: the BG scrolls virtually, and not the FG and the objects layout, with this code, in the "resize" subroutine:



    subq.w #5,($FFFFF700).w



    Later, I added the REV01 bg scroll system, and moved the cutscene to GHZ1, but this code causes the game crash. I tried to move the BG directly from Deform_GHZ, but simply I can't understand the format.


    How I can do this effect? I just need to use this effect for 4 1/2 seconds. I think, I need use a different code or RAM, but what?


    EDIT: It just works, if I change the subq by addq, but it causes the bg scrolls in reverse XD
     
    Last edited by a moderator: Feb 4, 2011
  2. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    Seems like your questions soughted. But just thought i'd ask, have you tried putting a negative value into it?
     
    Last edited by a moderator: Feb 4, 2011
  3. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    Yes, and it makes the camera scroll in reverse, or crash
     
  4. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    $FFFFF700 is the horizontal camera position for the foreground. If you want to move the background, you would have to use $FFFFF708.


    Also, it crashes because you move the camera to a negative position, which is impossible to handle for the engine.
     
Thread Status:
Not open for further replies.