willg101 wrote:Make the player the view's parent.
BeyondtheTech wrote:Make the background move by setting its xvelocity. You can also make the background x-infinite as needed.
But, I agree that the view should be set to the player, if at least within a number of pixels from the player. That way, the player is always on the screen, but moving within the view.
For up or down:yvelocity:(+=up,-=down);,For left or right: xvelocity:(+=left,-=right);
y=y+(your number);
Users browsing this forum: No registered users and 1 guest