This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TheZipCreator's profile picture

Autorun - A game where you run automatically

Started by TheZipCreator, 10 November 2017 - 07:14 PM
TheZipCreator #1
Posted 10 November 2017 - 08:14 PM
It's for the Advanced Computer

Images:




Controls: Space to jump


Download:

pastebin get xZatSeaa
Exerro #2
Posted 10 November 2017 - 10:48 PM
Is this supposed to happen?

TheZipCreator #3
Posted 10 November 2017 - 10:57 PM
Is this supposed to happen?

Yeah It's a bug, I don't know why It's happening
Bomb Bloke #4
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 on 11 November 2017 - 02:09 AM
Dave-ee Jones #5
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).