New account registration is temporarily disabled.

NEPHILIM89'S PROFILE

Search

Filter

Making your own panorama game

Yeah I just thought I'd post it here as i couldn't find any solutions through google (it's actually how I found this article) and so I figured this might help some people. I didnt actually realise that rm2k3 used a different script method for this, but I suppose I've never really used it much :S

Making your own panorama game

Sorry to bump but I had problems with the scrolling of my panorama Backgrounds and I think I should mention here the fix that I found.

The Problem: Collision tiles in the editor lined up fine with panorama tilemap at first however the moment the map scrolls they become misaligned. This causes problems when you are trying to use transparent tiles for collision.

The Fix: I looked through the game scripts and found the problem. Basically the misalignment is caused by the panorama being scrolled at a different rate than the normal tilemap that you make in the editor. This gives a nice effect for normal panoramas and gives the illusion of depth but when you want to use panoramas as your background. Thankfully this is easy to fix. In the Spriteset_Map script you will find the following lines:

# Update tilemap
@tilemap.ox = $game_map.display_x / 4
@tilemap.oy = $game_map.display_y / 4
@tilemap.update
# Update panorama plane
@panorama.ox = $game_map.display_x / 8
@panorama.oy = $game_map.display_y / 8

As you can see the panorama is scrolling at a different rate to the main tileset. In order to fix this we would simply change the eights to fours as so:

# Update tilemap
@tilemap.ox = $game_map.display_x / 4
@tilemap.oy = $game_map.display_y / 4
@tilemap.update
# Update panorama plane
@panorama.ox = $game_map.display_x / 4
@panorama.oy = $game_map.display_y / 4

And this fixes the problem. This is just a quick fix but it should work fine for most people. I'll probably post a more sophisticated method at some point in the future.
Pages: 1