Endless

liamoliamo Member Posts: 191
edited November -1 in Working with GS (Mac)
Hi guys,
My game is nearly ready and I just need to the the 'endlessness' to it.
how do you do that without using the wrap X/wrap Y because that is really jerky and the same old thing every time (there are pits and obstacles too).
So how do I make it endless like the ePig games with obstacles and stuff?

Thanks In Advance :)

Comments

  • liamoliamo Member Posts: 191
    please help!
  • icanmakeicanmake Member Posts: 466
    i think you will have to make another actor to spawn the ones you want.
  • liamoliamo Member Posts: 191
    ?
  • liamoliamo Member Posts: 191
    Anybody? I just want endless like ePig Dash.
  • quantumsheepquantumsheep Member Posts: 8,188
    If you're talking about an endless running game, you can set up an invisible actor - make its height the same as the screen.

    Then place this a little way away to the left of the leftmost edge (so probably at X - 40 or something).

    then on your other actors have a rule that says 'when collides with invisible actor, change attribute self.position X to 600.

    Play around with the values till you get something you're happy with.

    Cheers,

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • liamoliamo Member Posts: 191
    cool, thanks, but how do I make pits and obstacles be at different places every time it wraps?
  • liamoliamo Member Posts: 191
    Bump
  • liamoliamo Member Posts: 191
    Double Bump
  • arkonllfarkonllf Member Posts: 118
    you can make an object spawn the platforms in different places, i made once a small jump&run game' you can use it in your game how ever you want, i took must of the art out but what i left please dont use. there is a jumping+mini shop+double jumping+star spawning+menu system.
    here is the file for the game:
    http://uploading.com/files/m89984m9/jump5.zip/
    i hope it will help you, you can change the platform spawning position by going in to "spawning platform" actore and changing the spawning position.
  • AppsRacKAppsRacK Member Posts: 346
    try this http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./GSTemplateSLR.html i dont know if it uses wrap x coz i havent try it yet but i think its a very good example to learn something.
Sign In or Register to comment.