Page 8 of 8

Re: On Asking Questions

Posted: Wed Aug 21, 2019 9:53 am
by isobellesophia
Brosephine wrote:
Mon Jul 01, 2019 4:42 pm
I don't know where the new topic button is...
Its just at the top right, above the announcement topis/forum. You can see a pencil along with the text.

Re: On Asking Questions

Posted: Mon Sep 30, 2019 4:17 am
by rururubell
Hello! I want to create game with animated BG's. That's example what I want do do - https://www.youtube.com/watch?v=GXTFe4X-u8s

I read about ATL a little. And now I can make moving clouds, and I can change transparency level of layers (and make sun glare effects on screen).

But how can I made mowing wires, shaked by wind? And flying planes? How can I draw lines, bezier curves, dots and animate them? Is that possible? Can I get an example of something, that looks like I want?

Re: On Asking Questions

Posted: Mon Sep 30, 2019 7:03 am
by isobellesophia
rururubell wrote:
Mon Sep 30, 2019 4:17 am
Hello! I want to create game with animated BG's. That's example what I want do do - https://www.youtube.com/watch?v=GXTFe4X-u8s

I read about ATL a little. And now I can make moving clouds, and I can change transparency level of layers (and make sun glare effects on screen).

But how can I made mowing wires, shaked by wind? And flying planes? How can I draw lines, bezier curves, dots and animate them? Is that possible? Can I get an example of something, that looks like I want?
You can ask here

viewforum.php?f=8


I dont think some people ask here because this is just some rules to give.

Re: On Asking Questions

Posted: Mon Sep 30, 2019 2:32 pm
by Oduvan
Hi. Simple question - how do i add nested dictionaries values to a variable? For example:

Code: Select all

default test_var = 1
default itemz = {"sword": {"name": "sword","atk":10,"val":20},'helm': {"name": "helm","atk": 0,"def": 10,"val": 20}}

    
    
label start:
    "[itemz!q]"
    "add some points..."

    $test_var += [itemz[sword][atk]]
    return
Thats how

Code: Select all

$pc.atk += (itemz["sword"]["atk"])

Re: On Asking Questions

Posted: Fri Nov 08, 2019 6:29 pm
by Aniknk
Ok, I have a question, how one can make variables for wood choping with daily wood incom. I mean I choose to chop woods and when day is over I'll get +5 wood. All I can do is variables with unlimited replies. Like i click left mous buton, +5 wood, next click, next +5 wood and so on. It's also about date system. I was able to creat variables with minutes proceed by click +30 minutes, than +1 hour, +1 day, +1 month, +1year. I want it to be display only when I choose minutes proceed from menu. How can I get effect like this?

Re: On Asking Questions

Posted: Fri Nov 08, 2019 8:17 pm
by Aniknk
I did something like this:

Code: Select all

    label DayProceed:
        $ PlayerName = "Sabadios"
        $ WeekDays = ["Monday", "Tuesday", "Wensday", "Thursday", "Friday", "Saturday", "Sunday"]
        $ Months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
        $ MonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
        $ Minutes = 0
        $ Hours = 0
        $ Day = 0
        $ Days = 0
        $ Month = 0
        $ WoodName = "Wood"
        $ Wood = 0
        $ Stone = 0
        $ Iron = 0
        $ Gold = 10000

        $ GameRunning = True
        while GameRunning:
            $ Output = WeekDays[Day] + " " + Months[Month] + " " + str(Days+1) + " " + str(Hours) +":" + str(Minutes)

            menu:
                "Proceed by 30 minutes":
                    $ Minutes += 30
                    if Minutes > 59:
                        $ Minutes = 0
                        $ Hours += 1
                    if Hours > 23:
                        $ Hours = 0
                        $ Day += 1
                        $ Days += 1
                    if Day > 6:
                        $ Day = 0
                    if Days > MonthDays [Month]:
                        $ Month += 1
                        $ Day = 0
                    if Months > 11:
                        $ Month = 0

                    call Incom

                "Proceed by 1 hour":
                    $ Hours += 1
                    if Minutes > 59:
                        $ Minutes = 0
                        $ Hours += 1
                    if Hours > 23:
                        $ Hours = 0
                        $ Day += 1
                        $ Days += 1
                    if Day > 6:
                        $ Day = 0
                    if Days > MonthDays [Month]:
                        $ Month += 1
                        $ Day = 0
                    if Months > 11:
                        $ Month = 0

                    call Incom

                "Proceed by 6 hours":
                    $ Hours += 6
                    if Minutes > 59:
                        $ Minutes = 0
                        $ Hours += 1
                    if Hours > 23:
                        $ Hours = 0
                        $ Day += 1
                        $ Days += 1
                    if Day > 6:
                        $ Day = 0
                    if Days > MonthDays [Month]:
                        $ Month += 1
                        $ Day = 0
                    if Months > 11:
                        $ Month = 0

                    call Incom

                "Proceed by 12 hours":
                    $ Hours += 12
                    if Minutes > 59:
                        $ Minutes = 0
                        $ Hours += 1
                    if Hours > 23:
                        $ Hours = 0
                        $ Day += 1
                        $ Days += 1
                    if Day > 6:
                        $ Day = 0
                    if Days > MonthDays [Month]:
                        $ Month += 1
                        $ Day = 0
                    if Months > 11:
                        $ Month = 0

                    call Incom

                "Proceed by day":
                    $ Hours += 24
                    if Minutes > 59:
                        $ Minutes = 0
                        $ Hours += 1
                    if Hours > 23:
                        $ Hours = 0
                        $ Day += 1
                        $ Days += 1
                    if Day > 6:
                        $ Day = 0
                    if Days > MonthDays [Month]:
                        $ Month += 1
                        $ Day = 0
                    if Months > 11:
                        $ Month = 0

                    call Incom

    label Incom:
        if (Day == 1):
            "Your weekly incom"
            if WoodChoping:
                $ Wood += 5
How can I make calendar visable? And how can I display this incom I get?

EDIT: Situation under control.