Guest User

Parallax with Effect Tool

a guest
Jan 1st, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. How to do parallax effect on one background.
  2. First download Effect Tool here: https://www.smwcentral.net/?p=section&a=details&id=11479
  3.  
  4. To test, I'll use this background image: https://i.imgur.com/MBmMVza.png
  5.  
  6. Open it, and go in Parallax menu.
  7. Click on either absolute or relative depending on if you want the scrolling to be relative to the screen or absolute to the background.
  8. I actually only used Effect Tool with absolute and am unfamiliar with relative, but it should work the same.
  9.  
  10. (Optional: Click on Tool tab -> SA-1 Code because this collab use SA-1)
  11. (Optional if relative background: take a screenshot of your background, preferably with nothing else but the background on the screenshot.
  12. Then click on Tool tab -> Manage multilayer
  13. Load your background screenshot in BG 2 (if you get an error try again or make sure the screenshot has the correct size), enter a name and save. Should be like this: https://i.imgur.com/R9iV0iK.png
  14. Now in the Parallax menu at the bottom left you can chose your background in the dropdown menu under the name you saved it.)
  15. (Optional if absolute background: click load screenshot to upload a screenshot of your background)
  16.  
  17. First, check the Animation checkbox so you can see the parallax effect you're trying to create.
  18. Now under Control click on the "New" button to add a layer of scrolling. Then when this layer is selected you can change the options at the top.
  19. Scanlines: the size of this parallax scrolling, in pixels
  20. Multiplier: The scroll rate of the layer. 1 is same scroll rate as the foreground in levels. For example if you background has different layers of depth the farthest should have the lowest multiplier, and the closest the biggest (but usually should not be above 1 or it will make the layer scroll faster than the foreground which may look weird)
  21. Speed: The speed at which the parralax is moving automatically. If you don't want the background to autoscroll (and only move when Mario move like normal backgrounds) let it at 0
  22. Direction: Left or Right
  23.  
  24. When you want to add a new parallax layer, click New and change the values.
  25. In Control menu, you can change the positions of the layers with Move Up/Down, Delete or Clear them.
  26. Do not change the free RAM and Channel. You can change the BG layer you want to parallax but usually it should be BG 2.
  27.  
  28. Example picture of my background with parallax: https://i.imgur.com/EERYUfr.gif
  29. The clouds doesn't moves (multiplier 0), the mountains move the slowest and the water current the fastest.
  30.  
  31. You should experiment with the scanlines and multipliers until you are happy with the result.
  32. Once finished, click on "Code" to get the code.
  33.  
  34. To use this code, you need to use UberASM . Go in the UberASM folder of the hack, then in the level folder. Create a new .asm file, open it with notepad, and copy the code you got from Effect Tool, first the init code then the main code.
  35. You need to edit it slightly for it to be used with UberASM.:
  36. -Rename ".InitCode:" into "init:" and ".MainCode:" into "main"
  37. -Replace any "RTS" in the code by "RTL" (not doing so will crash the game)
  38. Should look like this: https://i.imgur.com/4BdDCa7.png
  39.  
  40. Then in the UberASM folder, open list.txt and under "level:" put your level number and the .asm file created like this:
  41. 012 parallax.asm
  42. Put your rom file into the UberASM folder and click UberASMTool.exe to insert the code into your level.
  43. Play your level and test.
Add Comment
Please, Sign In to add comment