Creating a game area larger than screen.

Hi,

I am thinking of making a top down racing game, but I’m not sure on how to have the players car move around the track that is off screen. Im thinking that you actually move the track rather than the car, but not sure how this would affect cpu cars, are there any tutorials or examples on this? I tried to find an answer before posting but couldn’t.

Cheers in advance [import]uid: 8699 topic_id: 36125 reply_id: 336125[/import]

Check into display groups!! Create one, and shove your whole scene; level background, players, etc. into it Then, you can move the actual display group around (offset by your player, for instance to keep your player centered on screee) and you should be good to go!

Holler if you want an example. I can whip one up later tonight when I get home. :slight_smile: Unless some enterprising soul wants to beat me to the punch! :wink: [import]uid: 11636 topic_id: 36125 reply_id: 143494[/import]

You might try out Perspective - my camera module.

C [import]uid: 147322 topic_id: 36125 reply_id: 143496[/import]

Thanks, I’ll give the module a go and see. I was thinking along the line of a display group as in the egg breaker example, but wasn’t sure about the computer controlled cars, if they are moving towards a certain point, would moving the display group affect the position or would it keep them moving to the position in relation to where the display group has been moved to?

for example, if a computer car is transitioning to y= 300 x =250

and I move the display group by -100, would the transition to adjust automatically as the object is part of the group?

Thanks for the quick replies. [import]uid: 8699 topic_id: 36125 reply_id: 143499[/import]

They will move in relation to the group.

C [import]uid: 147322 topic_id: 36125 reply_id: 143511[/import]

Thanks for the advice. Going to try it out over the weekend.

Cheers. [import]uid: 8699 topic_id: 36125 reply_id: 143645[/import]

Check into display groups!! Create one, and shove your whole scene; level background, players, etc. into it Then, you can move the actual display group around (offset by your player, for instance to keep your player centered on screee) and you should be good to go!

Holler if you want an example. I can whip one up later tonight when I get home. :slight_smile: Unless some enterprising soul wants to beat me to the punch! :wink: [import]uid: 11636 topic_id: 36125 reply_id: 143494[/import]

You might try out Perspective - my camera module.

C [import]uid: 147322 topic_id: 36125 reply_id: 143496[/import]

Thanks, I’ll give the module a go and see. I was thinking along the line of a display group as in the egg breaker example, but wasn’t sure about the computer controlled cars, if they are moving towards a certain point, would moving the display group affect the position or would it keep them moving to the position in relation to where the display group has been moved to?

for example, if a computer car is transitioning to y= 300 x =250

and I move the display group by -100, would the transition to adjust automatically as the object is part of the group?

Thanks for the quick replies. [import]uid: 8699 topic_id: 36125 reply_id: 143499[/import]

They will move in relation to the group.

C [import]uid: 147322 topic_id: 36125 reply_id: 143511[/import]

Thanks for the advice. Going to try it out over the weekend.

Cheers. [import]uid: 8699 topic_id: 36125 reply_id: 143645[/import]

Check into display groups!! Create one, and shove your whole scene; level background, players, etc. into it Then, you can move the actual display group around (offset by your player, for instance to keep your player centered on screee) and you should be good to go!

Holler if you want an example. I can whip one up later tonight when I get home. :slight_smile: Unless some enterprising soul wants to beat me to the punch! :wink: [import]uid: 11636 topic_id: 36125 reply_id: 143494[/import]

You might try out Perspective - my camera module.

C [import]uid: 147322 topic_id: 36125 reply_id: 143496[/import]

Thanks, I’ll give the module a go and see. I was thinking along the line of a display group as in the egg breaker example, but wasn’t sure about the computer controlled cars, if they are moving towards a certain point, would moving the display group affect the position or would it keep them moving to the position in relation to where the display group has been moved to?

for example, if a computer car is transitioning to y= 300 x =250

and I move the display group by -100, would the transition to adjust automatically as the object is part of the group?

Thanks for the quick replies. [import]uid: 8699 topic_id: 36125 reply_id: 143499[/import]

They will move in relation to the group.

C [import]uid: 147322 topic_id: 36125 reply_id: 143511[/import]

Thanks for the advice. Going to try it out over the weekend.

Cheers. [import]uid: 8699 topic_id: 36125 reply_id: 143645[/import]

Check into display groups!! Create one, and shove your whole scene; level background, players, etc. into it Then, you can move the actual display group around (offset by your player, for instance to keep your player centered on screee) and you should be good to go!

Holler if you want an example. I can whip one up later tonight when I get home. :slight_smile: Unless some enterprising soul wants to beat me to the punch! :wink: [import]uid: 11636 topic_id: 36125 reply_id: 143494[/import]

You might try out Perspective - my camera module.

C [import]uid: 147322 topic_id: 36125 reply_id: 143496[/import]

Thanks, I’ll give the module a go and see. I was thinking along the line of a display group as in the egg breaker example, but wasn’t sure about the computer controlled cars, if they are moving towards a certain point, would moving the display group affect the position or would it keep them moving to the position in relation to where the display group has been moved to?

for example, if a computer car is transitioning to y= 300 x =250

and I move the display group by -100, would the transition to adjust automatically as the object is part of the group?

Thanks for the quick replies. [import]uid: 8699 topic_id: 36125 reply_id: 143499[/import]

They will move in relation to the group.

C [import]uid: 147322 topic_id: 36125 reply_id: 143511[/import]