Added: 3 years ago
From: dexter2k6
Views: 10,255
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (15)

Sign In or Sign Up now to post a comment!
  • 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 :-)

  • Actually there are 4 layers:

    1.terrain

    2.mountains

    3.clouds

    4.sun

    Off course the sun layer is still.

  • 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.

  • 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

  • Amazing.

  • nice

  • 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. ;)

  • Comment removed

  • @MasterLucas92 you forgot the clouds(4)

  • @Shad12Dash The sun is static

  • @nicholasthetaylor it is still a layer

  • @nicholasthetaylor Oh okay then. What about the fps then? You can't forget that XD Does that add more layers?

  • @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.

  • nice work man, I can't wait to get into this.

  • 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?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more