Jump to content




Autorun - A game where you run automatically


4 replies to this topic

#1 TheZipCreator

  • Members
  • 27 posts
  • LocationNew York, US

Posted 10 November 2017 - 08:14 PM

It's for the Advanced Computer

Images:

Posted Image

Posted Image


Controls: Space to jump


Download:

pastebin get xZatSeaa



#2 Exerro

  • Members
  • 801 posts

Posted 10 November 2017 - 10:48 PM

Is this supposed to happen?

Posted Image

#3 TheZipCreator

  • Members
  • 27 posts
  • LocationNew York, US

Posted 10 November 2017 - 10:57 PM

View PostExerro, on 10 November 2017 - 10:48 PM, said:

Is this supposed to happen?

Posted Image
Yeah It's a bug, I don't know why It's happening

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 11 November 2017 - 03:09 AM

createPlatforms() and drawBuildings() consider the platforms table to be 0-indexed. Everywhere else, you're treating it as 1-indexed.

Edited by Bomb Bloke, 11 November 2017 - 03:09 AM.


#5 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 24 November 2017 - 04:32 AM

It would be cool if your speed increased as you go along (or just have harder levels where the speed is increased).

If you look at my game, Dodj, you might notice that the players' speed can be adjusted. This is because of Nitrogenfingers' fantastic suggestion of using states. Since you're always moving forward you always have the one 'state': 'true'.

You can set a timer increment, and every time it goes off you can move the player forward one pixel. The smaller you make the timer increment the faster the player moves. You could make a ratio that slowly increases/decreases as the game goes on.

Another thought, maybe make 'layered' platforms? Have some layers passing by that are faster than others, foreground platforms and 'background' platforms (just behind but can still be jumped on).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users