Where can I find a nice tutorial explaining the layer object? Im trying to follow the tutorial found at http://www.iol.ie/~pkb/NightFall%20Intro.htm but it uses the layer object which I am TOTALLY unfamiliar with...
Where can I find a nice tutorial explaining the layer object? Im trying to follow the tutorial found at http://www.iol.ie/~pkb/NightFall%20Intro.htm but it uses the layer object which I am TOTALLY unfamiliar with...
try to use it, then start asking questions when you get stumped.
parallax scrolling game
Parallaxing is best described as distant object moving slower than close objects.
Imagine you are driving down the road and looking out a side window. Objects in the far distance (mountains, the moon, stars) appear to move very slowly or not at all. Object a a mid distance (hills, buildings, trees) move by more slowly than close objects such as the road signs. This perceived appearance of movement is called Parallaxing. You ca create parallax scrolling with Multimedia Fusion quite simply.
·Set the application window size and frame size as explained before.
·In the frame editor, open the Layer toolbar, and create as many as you need of scrolling planes.
·Drop the objects in the planes to create your display.
·Click on each layer in the layer toolbar to open its properties in the property toolbar. you will notice two properties:X coefficient and Y Coefficient. Each of them represents the speed of scrolling of this layer relative to the position in the frame. If the number is below 1, the layer will be slower. For example, a coefficient of 0.5 will make the layer scroll twice as slow as the main layer. A coefficient of 2 will make it scroll twice as fast.
·You should always have your main character and action in the layer with a coefficient of 1
·Eventually check the "Wrap" property for layers that go faster than the main layer to ensure the graphics are always present on the screen.
·Now go in the event editor and enter the "Center window position in frame" action.
from the Multimedia Fusion 2 [color:#FFFFFF]User's Manual[/color]
Thanks for the answer but uhm...that's NOT what I was asking.. I want to know how to make my character appear above a lamp post when he is standing at a lower higher y value, but when he is higher in y value,to appear behind the object,and the tutorial makes it seem like that is the layering object's job, i have the scrolling thing down.
The layer object has a "Sort by decreasing Y" action. That will order the objects how you've described.
I tried that, under the event editor... Doesn't work...
It should work, unless you have the objects on different MMF2 layers, or you are using isometric with height levels which becomes very tricky.
if your objects are on different MMf2 layers then that is most likely the cause.
Uhmmm Ill send you a picture of what i've got...
Edit:
Here it is...
![]()
Is that tree a backdrop instead of an active object? Anything on the same layer that the player needs to be able to move in front of and also behind will need to be an active object for it to work.
So if you're using background objects for the trees and lamp posts, then you'll need to create active object versions for those specific ones. If that's not it and they are definitely on the same layer then I can't really think of what else it could be I'm afraid
OH, ok thanks! The lamp posts are a backdrop i think! Awesome!