Custom Map #4636: Real time score. By: builder17

Started by AutoPost, July 28, 2017, 05:33:07 AM

Previous topic - Next topic

AutoPost

This topic is for discussion of map #4636: Real time score


Author: builder17
Size: 132x99

Desc:
Getting good score in this is hard #CRPL

GoodMorning

You left the trace on. Any chance of a code dump?
A narrative is a lightly-marked path to another reality.

Builder17


GoodMorning

Interesting. What led you to do it that way? My default would be:

once
    0 ->Lifetimer
endonce

<-Lifetimer IsPaused add ->Lifetimer
<-Lifetimer SetGameTimeFrames

:awake
    1 OperateWhilePaused

:destroyed
    0 OperateWhilePaused


I'm interested in how you arrived at that form.
A narrative is a lightly-marked path to another reality.

Builder17

For some unknown reason it didn't work first.
So I did lot of changes to it

and adding OperateWhilePaused to once block solved problem.

That's creative use of IsPaused in your script.
I didn't know it can be used in that way. :O

Does that script work? :)

D0m0nik

Sorry for being stupid but not sure what the CRPL does? Does it just affect the score rather than the time?

D0m0nik

#6
Just noticed the clock. Nice!

Be great if you could make a second one of these but with a bit more challenge, spores, digitalis, runners, the full works!

GoodMorning

#7
D0m0nik: You asked for it, here it is... The clock keeps ticking while the game is paused.

Builder17: There's a reason that (since computers use numbers to represent things) it is convention to use 1 for true and 0 for false. In CRPL, 'TRUE' and '1' do the same thing, and similarly for '0' and 'FALSE'. It is bad for readability, and hard to understand if you don't yet know that TRUE is 1. Sorry about doing that.

I haven't tested the script, but it should work.
A narrative is a lightly-marked path to another reality.

Builder17