sizcoz's Recent Forum Activity

  • I can confirm this, as I am toying with an endless sidescroller, and the jank is horrible with 115, in c2 and c3 runtime, with or without worker, any scrolling background janks like crazy, it was not brilliant before, but this is horrible.

    I'm probably going to ditch this project, if there are no improvements.

    If anyone needs to see it, just download endless runner template, and set the platform plugin to disabled, sit back and watch.

    BTW, I'm a great advocate for the construct software, but sometimes things just have to be said.

  • > Can you post your capx, or a screenshot of the event sheet?

    https://1drv.ms/u/s!Am9ctVZP5a3jiYYcN3s_1mPEyc3Nuw

    Hopefully that should work for you (To download)

    I remade this and having trouble getting your way to work at all now

    This works (edit deleted original Pick all event, wasn't needed) , just double checked, and they start at very nearly all the same time, and find path.

    System | Compare Two Values | ai.PickedCount = ai.Count

    side note on your capx, you are better off using 3 individual sprites for the obstacles, as this will be much more efficient than a large image with lots of collision points.

  • sizcoz Ahhh that's great. Makes my life a lot easier. Thanks a lot.

    I think I need read up on regex to figure out what those things do, so I can make use of it in the future.

    The good thing with events like previous examples with loops, are that they are a lot easier to read/customize and understand. Regex is nice and short, but looks like the cat just stepped on the keyboard. :D

    I agree.

  • Ok I have finally got a regex that works in Firefox

    RegexReplace(str(Variable1), "\d{1,3}(?=(\d{3})+(?!\d))", "g", "$&,")

    working example below

    https://www.sizzle-games.com/bignumbers/

  • I couldn't really find what i was looking for.

    I have some values stored in variables that should be shown in text objects. these are pretty high numbers.

    Examples of things i want to do:

    Format the values

    25700000 to ----> 25,700,000 and 25,7 million

    267300 ti 267,000 or 267 thousand.

    I'm quite amazed that Construct still doesn't have any built in support for handling and displaying values in a good way. Usually Requires very complex expressions to get it right.

    Anyone have any good example or formula for displaying integers with commas for every 3 digit?

    1,000 to 1,000,000,000 or higher?

    This works in firefox

    RegexReplace(str(Your_variable_here), "(\d)(?=(\d{3})+$)", "g", ",")

    Edit, just noticed it needs a little more adjusting

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • None of my commercial apps work because they have the mobile advert plugin installed, so I guess it's a matter of waiting for this, actually to shed some light on this, I just looked at the TODO https://github.com/Scirra/Construct-3-bugs/issues/1646 list for c3 runtime, and mobile advert is ticked, so does this mean it's meant to work?

    When I removed the plugin from my most recent project, just now, it worked in c3 runtime, so either its buggy, or Mobile Advert hasn't been completed yet.

  • You could try setting your result to a global variable , for instance

    set New_result to round(your result*100)/100

    Then set text to str(New_result) This should negate the floating point inprecision, and restrict the result to 2 decimals.

    I have added a capx example.

    https://www.sizzle-games.com/float_correction.capx

  • I have made fully fuctioning Tic-Tac-Toe capx, using 'is overlapping'

    Detects

    overlapping

    Winner

    Draw

    Score

    Order of play (loser first next go)

    2 Player

    Arrows and shift for Player 1 Red

    WASD and Space Bar for Player 2 Green

    Had fun messing around with this, capx below

    https://www.sizzle-games.com/Tic-Tac-Toe.capx

  • An example of your way

    If p2 presses D and P1_cursor is to the right

    https://www.sizzle-games.com/ttt.png

  • I don’t think anyone here wants to make a feature request.

    Maybe you might want to ask for this as a feature request.

    https://construct3.ideas.aha.io/

    Ok :)

  • > One idea that comes to mind is to let the text box be normal and under a “text changed” condition you can check what was typed and limit it to numbers or numbers with decimals. Actually you could use float() with this too.

    >

    >

    textbox: on text changed
    > compare: len(textbox.text)>0
    > — textbox: set text to float(self.text)

    Hi,

    thanks for that hint. This could be a way.

    But I do not understand why the "Number" type does not support it from scratch?

    It's html, shouldn't be a big deal at all?

    Thanks a lot!

    In Html, it's as simple as

    <input type="number" name="Whatever" step="0.01">, where step is the number you want or step="any"

    https://www.w3schools.com/tags/att_input_step.asp

    Maybe you might want to ask for this as a feature request.

    https://construct3.ideas.aha.io/

  • Something like this maybe?

    https://www.sizzle-games.com/waterfall.capx

    updated the capx to reflect more what like what you wanted in the op, for some reason the sine behaviour does not work with this method, so I have had to move the platform by bullet behaviour, which works well.

    Edit 2, Have got it working with sine behaviour with a minor adjustment

sizcoz's avatar

sizcoz

Early Adopter

Member since 19 Apr, 2014

Twitter
sizcoz has 8 followers

Connect with sizcoz

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x12
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies