distance based game help

Trapper74Trapper74 Member Posts: 45
edited November -1 in Working with GS (Mac)
i started making a distance based game the other day that is basically something like berzerk ball or hotdog down a hallway kinda thing. anyway my problem is when my projectile reaches the edge of the screen (currently 1920px wide with Wrap X on) it then comes on from the left on a new screen.

i dont need to just have the floor/scenery moving on a loop according to the speed of the projectile do i? cos that involves maths :P

Comments

  • Trapper74Trapper74 Member Posts: 45
    is this kind of game even possible in gamesalad??? anyone?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    ive never seen the games you mentioned so im not sure if this is what you going for.But if you want the object to not wrap, but you need to have wrap turned on you can:

    have a rule in the object with attribute self position x is > scene width( in your case itll be 1920)
    -destroyactor
  • Trapper74Trapper74 Member Posts: 45
    sorry i may not have explained properly, tbh i dont know if im going about this the right way in the first place, basically imagine a character hitting a baseball, then the camera follows the baseball through the air.. the scene needs to be infinite as the idea is to get the greatest distance possible. the way i am currently doing it is with wrap X on so that the scenery repeats itself, i would then have a spawner spawning any collectible items.

    when the baseball reaches the edge of the screen, it is leaving via the right side (i want it to be in the middle of the screen always) the camera does follow the ball correctly up intil it gets to the edge of my scene.....this is most likely to do with the wrap x i guess but i dont know how else to go about doing something like this
  • Trapper74Trapper74 Member Posts: 45
    ok now i have got the scene to be infinite on X axis which is great, no more camera issue, but now i have another problem.........the floor

    i basically need a floor that will be infinite as well, and also let the baseball collide, using a spawner doesn't really work well as because the scene is infinite i cant place the spawner outside the game area :S, plus there must be a more efficient way...

    i tried making a floor collide actor that was like 5000000 wide and then tried to have the actual floor graphic (another actor) replicate constantly over the top, but when i do this the bouncing physics seem to fly right out the window and the 'baseball' (that isnt a baseball :P at all) never stops
  • rlehmrlehm Member Posts: 320
    you could also create wall actors, invisible, if bullet/ball/whatever collide, destroy... it won't wrap like 50CENT no mo
Sign In or Register to comment.