SputnikCZ's Recent Forum Activity

  • Good morning/day guys!

    Well, after the latest update of C2, I've got problem with my buttons in some places of my game.

    Let me explain:

    I have few Layouts, one of them is GameLayout. There is more than 13 layers. Layer Communication is the place with problem. (Sorry for long info )

    Sprite ComBT and ComBTTX is like Communications menu. With instace Variable "Usage". Fleet have "FLEET" etc. and after last update I found this problem.

    I just copy every line from "FLEET" in gamesheet and paste it for new IV - "CORP". Then I changed the text included in actions and conditions and guess what? Still not working. I'm too lazy to printscreen my C2 with this, but if you demand I will do it for you. :3

    Cheers guys

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I'm using those positions :

    1-Goldmine

    2-Lumbermill

    3-Laboratory

    11-Soldier1

    12-Soldier2

    13-Soldier3

    21-GovBuilding1

    22-Gov2

    23-Gov3

    31-Research1

    32-Res2

    33-Res3

    Etc...

    Those array positions are good for me and I know where is what. I just had question about adding resources per TickForProd (2 seconds) and if is possible to create subtract function what will subtract from current production and from stored resources.

  • Well, I use XYZ array because of this:

    (1,0,0) means - 1 for Gold, 0 for level, 0 for info for production.

    As example:

    tokenat(Array.At(1,GoldUp,0),0,",")

    tokenat(Array.At(1,GoldUp,0),1,",")

    Is for Goldmine, depending on level cost - Like: Build GOLDMINE lvl 1, for 150 gold, 150 lumber.

    And those zeros in (1,GoldUP,0) are for production per TickForProd - like 50 gold per 2s.

    That's why I use Array.

  • After I arrive from work I will explain

  • Hello Constructniacs!

    As I work on my "Country Management" I have few issues with my projecct wwhat I'm solving right now. But there is one what I can't solve y myself and I'd like to hear some opinions of yours!

    I'm using functions for buildings (Array XYZ for building costs and production per 2s) but I use also this array for Military layout (Soldier price, -gold per 2s, -food per 2s).

    When I had only buildings, everything was fine. My GoldTX showed me CurrentGold & " Gold" & newline & array.At(1,GoldUp,1) & " Gold each " & TickForProd & " seconds"

    When I create new conditions for Soldiers - 1 soldier cost 2 people, 20 gold and every TickForProd cost 20g and 15 food, my GoldTX show me NaN Gold and NaN food........ Any idea how to solve this?

    Army script is now just this: System -> Army > 0 ->> Subtrac from tokenat(array.At(11,0,1+Army1),1,",") from CurrentGold ; Subtract from tokenat(Array.At(11,0,1),2,",") from Food

  • How the hell I put there fade?!!!!! Thank you so much for that. And those buttons - did they work? Because they dont work for me......

  • GDrive DL

    Take it!

  • I just think about setting a group (Layer Interface is visible-> Set Group Buttons active 'Buttons group=Button1-6 is visible')

    What do you think?

  • When I come from work I'll post a link

  • I decide to create Layers but now I have a problem. Is this correct? O_o I didn't sleep for good 2 days so I'm confused.

    When I start this game, after 2 seconds (one tick) my button ResBT dissapeare....... I cant find the problem. :/ I tried to check every command but with no luck....

  • Hey everyone!

    Second post here (Unfortunatully) but I dont wanna mix 2 different things into one.

    Now, as I'm creating this clicker game, I'd like to know, what is better - Create buttons for Layer, or Layout? Imagine this - You are on Production layer/layout and wanna change it to Goverment layer/layout to manage your ministers.... Production Layout have INTERFACE layer including Gold, Lumber, Science points, Food and people earned in RealTime. What do you think?

    Cheers for reply!

  • gumshoe, thank you so much for your proposal.

    Unfortunatully I must decline. I am co-founder of SoftWork Group, team of six people and we are working and learning how to work with C2. It is quite new for all of us but it's great software and it worth to buy! If you want, we can discuss some cooperation. I am open to everything what can bring something new to us or someone else!

    Cheers, Robert a.k.a Sputnik

SputnikCZ's avatar

SputnikCZ

Member since 6 Jul, 2016

None one is following SputnikCZ yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies