How do I make an endless slope?

0 favourites
  • 11 posts
From the Asset Store
Template for an endless runner game, fully documented in comments and video
  • So I want to make a ski game (side-view, like Ski Safari) , with actual winding slopes, but I also want it random and endless, how do I do this? Also how do I have different colored sections of this slope.

  • Maybe try a tileset and tile it vertically?

  • Simple enough with 2 events:

    https://dl.dropboxusercontent.com/u/659 ... rator.capx

  • alextro It doesn't go on forever, and I want it like loopy, and to make it go up and down as well, how do I do that?

  • Well I just throw the basic idea how slopes generated so you can work out from there. To make all mechanics work a lot of logic need to be dig more.

  • you may want to make each slope as an art asset in an art program such as photoshop or gimp, and then build each like a room setting up the collisions and such on each, and then implement java or possibly a large series of events to perform "procedural generation" where it calls in the next frame (into memory) ahead of time and uses a random number generator to determine each (possibly with if then statements to prevent certain slopes from occurring after specific slopes if you wanna get complicated or run into issues with how they blend) otherwise your looking at a lot of math if you want to create an algorithm that actually graphs out each slope randomly and if you aren't careful with coding it you may end up with impossible slopes that break your game. there are some decent java game programming tutorials on youtube that may be of help if you are looking to go that route, instead of trying to manage with strictly events (which can probably be done, but in a lot more lines id imagine)

    anyhow i hope this was at least somewhat helpful in pointing you in the right direction.

  • It's rather simple to do, and JavaScript isn't needed at all. As alextro showed you can do it with only one event. Why not get creative and try experimenting and see what you can come up with?

  • R0J0hound, I just end up ruining what alextro already gave me. Help?!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I'm not sure how much help I'll be. I mean I could come up with something like alextro, but nothing would be exactly what you had in mind. I guess we could go back and forth with you saying what's wrong and me then fixing them, but that would just be me making your game.

  • Ayolabi12345 study the events that Alextro gave you and work out exactly what everything does! I hate using other peoples' code because I always break it if I don't understand how it works. When you've figured out how it works you can work out what you can change without ruining it

  • ... if I don't understand how it works. ...

    This is key. Use other resources too like StackOverflow etc to understand. It's all in how you ask the question.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)