JoeyCan2's Forum Posts

  • 7 posts
  • You do not have permission to view this post

  • Story:

    I'm working very very proactively on a game.

    I've wanted to make a game for the last 15 years of my life, but I never took the time to fully commit to it.

    I've dabbled around with coding and game engines like RPGMaker, Unity, and Gamemaker. I've even coded some animations and small games on old graphing calculators.

    I'm really enjoying the Construct 3 engine, and I'm going to finally achieve this goal since I'm getting older and don't play video games as much anymore.

    Anyway, I thought I'd share my progress. I'm spending 6 to 8 hours per day, treating it like a full-time job (currently working part-time).

    -------------------------------------------------------------------------------------------------

    Progress:

    I've completed my first week and have put in a total of 38 hours so far.

    I plan on working every day except Sundays for the next 90 days and will assess my progress from there.

    I'm also planning on putting the game on the Android app store once it's polished enough and playable.

    Unfortunately, I won't be sharing any details of my project until it's nearly finished or I have a very playable version to show and have tested.

    Tagged:

  • Example: If you do a action or kill something it floats/stacks a experience number on screen, and if you preform another action in a small period of time the 1st experience number floats away and fades as the 2nd experience number in text shows up? and they just continue to stack on top of each other and fade/float away.

    Does anyone know how to do this or have code for it they could share?

    Would be much appreciated thanks!

    Also I feel like this community, and discord, has helped quite a bit hope in the future I can pay it back.

  • This is for a money/buying system in my game

    I need help with this....

    Problem:

    So I'm having a issue I want to turn a number variable like 10000 to display on set text. 10,000 or every 999 the next number over will add a comma.

    Found a Solution (Sort Of):

    I tried tons of different ways then came across this old forum post.

    construct.net/en/forum/construct-2/how-do-i-18/string-numbers-commas-127611

    Anyway they used Events and Actions like this to create something that sort of works.

    Problem is it adds commas before needed. 999 ends up being ,999

    System: Every tick

    System: For "" from 0 to tokencount(str(PocketCASH), "")%3

    -> PocketCASH: Set text to left(str(PocketCASH), LoopIndex)

    ----+ System: tokencount(str(PocketCASH), "") > 1 and len(str(PocketCASH)) > 3

    ----+ System: For "put" from floor(tokencount(str(PocketCASH), "")÷3) to 1

    -----> PocketCASH: Append ","&left(right(str(PocketCASH), LoopIndex×3), 3)

    --------+ System: tokenat(Text.Text, 0, "") = ","

    ---------> PocketCASH: Set text to right(PocketCASH.Text, tokencount(PocketCASH.Text, "")-1)

    My attempt at solving this:

    I tried adding a condition

    ----+ System: len(str(PocketCASH)) > 3

    However when I add this, now all the Money. Disappears whenever I press a button to purchase something in my game. But without this condition the purchasing works fine and the text updates, except with the annoying ,999 Comma before needed.

    Can someone help me?

    Original Question:

    Anyone know how to make a Text_SET, that is a Global variable, have commas in the Text. Like the variable is 10000 so the text displays 10000 now how would I get the text to display 10,000 instead?

  • Is there a Discord for Construct3?

    A place to collaborate or talk with other experienced Construct-3 people? I tried searching for "discord" in the forums but all the discord links are broken and 4 years ago.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just need a simple system condition to compare the global like if variable = 0, set text to "Sunday", if variable =1, set text to "Monday" etc. To reset the variable the logic is with the button, so when button pressed add 1 to variable. Then a separate check if variable = 7, set variable to 0.

    Hey you mind if we connect?

    You seem very experienced wouldn't mind if I ask you a few other questions when I hit a road block?

    I'm grinding out a project in the next 30 to 90 days, and had I known this earlier I wouldn't have wasted 4 hours of my time trying to find a way to get a JavaScript to work.

    There's no IM or direct message on this site.

    Not sure what platforms you're on but my Reddit is No_Cockroach2259.

  • Just need a simple system condition to compare the global like if variable = 0, set text to "Sunday", if variable =1, set text to "Monday" etc. To reset the variable the logic is with the button, so when button pressed add 1 to variable. Then a separate check if variable = 7, set variable to 0.

    Thank you I'll try it. I don't know why I made it so complicated lol.

  • How would I make a global variable integer: update a text object to display text based off the current global variable number?

    For instance making a day system where ever day you advance after pressing a "sleep" button.

    1. It would advance the global variable by 1 then based on the variable amount

    2. It would display the current day setting a text object to ("Monday, Tuesday)

    Then after you have all 7 days it would reset back to 0 = Sunday

    ------------

    0 = Sunday

    1 = Monday

    So on until

    6 = Saturday

    -------------

    Thanks guys I've been struggling to figure this out.... I even had a AI bot write me JavaScript 10 million different times but none of the code would work to set the text.

  • 7 posts