Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Super Parallax Star Scroller

Author
Message
lesduffy
4
Years of Service
User Offline
Joined: 4th Aug 2019
Location:
Posted: 6th Sep 2019 05:10
Something I made on my first night using AppGameKit Studio. Not really a game, but I just wanted to start learning the syntax etc. It only goes one way and I could make it go both ways, but maybe I'll do that later. Change variables to adjust number of stars, parallax layers, etc. A speed of less than 1 doesn't seem to work for some reason. Not sure why yet.


PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 7th Sep 2019 18:08 Edited at: 7th Sep 2019 18:08
Speed of less than 1 doesnt work because MoveSpeed and xpos[] are integers. You must declare both of them as floats.


PSY LABS Games
Coders don't die, they just gosub without return
lesduffy
4
Years of Service
User Offline
Joined: 4th Aug 2019
Location:
Posted: 8th Sep 2019 06:26
Hey many thanks!

Login to post a reply

Server time is: 2024-03-29 10:19:17
Your offset time is: 2024-03-29 10:19:17