Mr.S Posted August 29, 2008 Report Share Posted August 29, 2008 OK then i hey set up all of my background and it works fine when Sonic is moving left or right. But this is the problem: I don't the Y of my backgrounds to tiled i only want my X to be tiled or i don't get the parallax background. Is there any way to keep my background always in my view without making it tiled. (Sorry if its hard to understand). This is the code i am using for my background: background_x[2]=view_xview[0]/2.0 background_x[1]=view_xview[0]/3.0 Basically how do i get my parallax background to always stay in Sonic's view and still keep its scrolling effect. Link to comment Share on other sites More sharing options...
Kain Posted August 29, 2008 Report Share Posted August 29, 2008 There's an attribute for background which makes them tiled vertically or not. You can change it in the room properties (there's a checkbox next to where it says "Tile Vert."). Alternately, you could do it in code, by saying "background_vtiled[whatever] = 0;" The problem is there's no corresponding draw_background_*** function for this, so if you run out of backgrounds or get tired of the jumpiness then you're gonna have to code your own (or use someone else's script; I can find some if you need). Link to comment Share on other sites More sharing options...
Mr.S Posted August 29, 2008 Author Report Share Posted August 29, 2008 Thanks, the problem is when i tiled my background it would be over my over backgrounds. But i solved the problem. Cheers Kain. Link to comment Share on other sites More sharing options...
Godmaster Posted August 30, 2008 Report Share Posted August 30, 2008 I'm pretty confusing to know which background drawing is better and faster: -the room array ones (background[0],...background[1]) -draw_background -draw_sprite (with minimum depth, helps a lot making animated parallaxes) Link to comment Share on other sites More sharing options...
Kain Posted August 30, 2008 Report Share Posted August 30, 2008 They're probably mostly the same with minimum overhead differences. Using the room array ones will probably be the fastest, but the difference will be negligible. Link to comment Share on other sites More sharing options...
Recommended Posts