Actually depending on the case waht master lucas said makes sense, i mean if you want to make a paralax effect in a game like castlevania or magamen you dont need to make the layer repeat it self since you r gong to have the hole layer made so that it goes whit the level
@MasterLucas92 Not really. First of all should the layer be able to repeat itself, as the video shows. It also should draw and update only those sprites that are visible, which the video doesn't show but probably do.
To end this unnecessary discussion (no offense):
There are 3 moving layers (each with different velocities)
And 1 constant not moving Background Picture which contains the sun and the blue sky :-)
dexter2k6 5 months ago
Actually there are 4 layers:
1.terrain
2.mountains
3.clouds
4.sun
Off course the sun layer is still.
fndmiranda 5 months ago
haha it's got an appealing art style :P
Anyway nice job, I'm beginning to learn about XNA so good job, it's complicated stuff imo.
MrSean490 7 months ago
Actually depending on the case waht master lucas said makes sense, i mean if you want to make a paralax effect in a game like castlevania or magamen you dont need to make the layer repeat it self since you r gong to have the hole layer made so that it goes whit the level
Tandertex 10 months ago
Amazing.
xXxZeffaxXx 1 year ago
nice
jazzkomp 1 year ago
You can see that there are three layers, and each are going at a different speed.
How I would do it is
- Create a sprite class so that you can easily draw and keep up on the X and Y coordinates of the texture.
- Create a Vector2 Position and Velocity variable in the sprite class so in the Update() it would update the coordinates.
-In the engine, create 3 sprites, each going at a different speed. You have parallax scrolling. ;)
MasterLucas92 2 years ago
Comment removed
MrGhoulSlayeR 2 years ago
@MasterLucas92 you forgot the clouds(4)
Shad12Dash 1 year ago
@Shad12Dash The sun is static
nicholasthetaylor 1 year ago
@nicholasthetaylor it is still a layer
Shad12Dash 1 year ago
@nicholasthetaylor Oh okay then. What about the fps then? You can't forget that XD Does that add more layers?
nicholasthetaylor 1 year ago
@MasterLucas92 Not really. First of all should the layer be able to repeat itself, as the video shows. It also should draw and update only those sprites that are visible, which the video doesn't show but probably do.
DarkPlusPlus 1 year ago
nice work man, I can't wait to get into this.
xld3000 2 years ago
Nice! Would you mind pointing me in the right direction on how to do parallax side scrolling in XNA? Did you use any helpful tutorials?
PolicePeople 3 years ago