I need a programmer.

User avatar
StarBlades
Posts: 45
Joined: Wed Jul 22, 2020 1:23 am
Contact:

Re: I need a programmer.

Post by StarBlades » Thu Aug 13, 2020 12:45 pm

I still need some assistance
The King of Technical Difficulties.
Download AfterWorld Here: starblades.godaddysites.com
User avatar
mouse spirit
Posts: 850
Joined: Tue May 12, 2020 1:13 am
Location: Ohio,North America
Contact:

Re: I need a programmer.

Post by mouse spirit » Thu Aug 13, 2020 2:31 pm

Whats up?
I am game, hear me blip.

WIP my game Almika The Star Rider Densetsu Gaiden
https://www.mediafire.com/file/phef252j ... p.zip/file
Forum link viewtopic.php?f=51&t=5278
User avatar
StarBlades
Posts: 45
Joined: Wed Jul 22, 2020 1:23 am
Contact:

Re: I need a programmer.

Post by StarBlades » Thu Aug 13, 2020 6:56 pm

I need to make a script/ code where every 15 screens you walk across, a day progresses. I also need it to be displayed on the hud.
The King of Technical Difficulties.
Download AfterWorld Here: starblades.godaddysites.com
User avatar
mouse spirit
Posts: 850
Joined: Tue May 12, 2020 1:13 am
Location: Ohio,North America
Contact:

Re: I need a programmer.

Post by mouse spirit » Thu Aug 13, 2020 7:13 pm

Gotcha. I will look into it.my laptop is being sketchy though.
I am game, hear me blip.

WIP my game Almika The Star Rider Densetsu Gaiden
https://www.mediafire.com/file/phef252j ... p.zip/file
Forum link viewtopic.php?f=51&t=5278
User avatar
crazygrouptrio
Posts: 126
Joined: Fri Jan 11, 2019 2:22 pm
Location: United States
Contact:

Re: I need a programmer.

Post by crazygrouptrio » Thu Sep 24, 2020 9:00 pm

StarBlades wrote:
Thu Aug 13, 2020 6:56 pm
I need to make a script/ code where every 15 screens you walk across, a day progresses. I also need it to be displayed on the hud.
What I would do is implement two user variables, like "screenCount" and "timeOfDay" or something (name doesn't matter obviously). In each of your bounds handler scripts near the bottom you would add:

Code: Select all

LDA screenCount
CMP #16
BEQ +
AddValue #$02, screenCount, #$01, #$00
JMP doneCountingScreens
+
LDA #$00
STA screenCount
LDA timeOfDay
CMP #$01
BEQ +
LDA #$01
STA timeOfDay
JMP doneCountingScreens
+
LDA #$00
STA timeOfDay
JMP doneCountingScreens
doneCountingScreens:
That may not work as-is (it's off the top of my head :? ) You also may run into issues counting above the number 10, and 09 might be a better number to go with. But basically that code will add 1 to the variable screenCount, but when it hits 16 it instead changes timeOfDay to 1 and resets screenCount to 0, starting the count over. Then if timeOfDay is 1 it changes it to 0 instead. You would then need to come up with your day and night cycle that would vary based on the timeOfDay variable (0 being day, 1 being night). If you already have your own day and night system you could stick it in there instead of the timeOfDay stuff. Good luck!
The Games I've Made/Am Making:
Shera & The 40 Thieves
Mawthorne: Ancient Quest
Afterlight
Raid or Die!
User avatar
StarBlades
Posts: 45
Joined: Wed Jul 22, 2020 1:23 am
Contact:

Re: I need a programmer.

Post by StarBlades » Sat Sep 26, 2020 6:11 am

THANKS!!!!
The King of Technical Difficulties.
Download AfterWorld Here: starblades.godaddysites.com
Post Reply