N
nick13579
Guest
So I want to make a sky in the background of my side-scrolling game. The room is very long (sideways), but the view is smaller (1920x1080). I don't want to make the sky sprite as big as the room and make it stay in one place because that would make it look like it's not far away. What I want the sky to be is the same size as the view, not the same size as the room, and follow the view so it looks like it isn't moving when the player moves.
What I am doing right now is have the sky sprite assigned to an object and I have this in the objects step event, "x = view_xport[0]"
I thought it would be this easy, but it isn't working. The object's x is only set to the view's x once, like it's in a create event. I don't even know if I should be using an object anyway.
So how would I make the object follow the view. Or should I draw the sprite to the view instead?
Thanks!
What I am doing right now is have the sky sprite assigned to an object and I have this in the objects step event, "x = view_xport[0]"
I thought it would be this easy, but it isn't working. The object's x is only set to the view's x once, like it's in a create event. I don't even know if I should be using an object anyway.
So how would I make the object follow the view. Or should I draw the sprite to the view instead?
Thanks!