tunepunk's Recent Forum Activity

  • R0J0hound for some reason the regex does not work in c3, or maybe just firefox?

  • Made a solution with a function that is pretty flexible. It took a bit of time but this function i can just paste in any project, and feed it any number and it will spit out correct number format.

    Sharing if anyone finds it useful.

    dropbox.com/s/o1pcct9quz4mgsu/numberconvert2.c3p

  • 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?

  • sagispin - That isn't currently supported. I can't give an eta for that feature, but that is something I want to add.

    - indeed. Again, I can't give an eta, but I do plan on updating the runtime as soon as I can.

    Here's the latest Spriter 2 gif:

    A new way to animate

    Looks amazing. Can't wait to try it out! :D

  • Some more useful shortcuts that could be added.

    Commonly used objects.

    T = add Text object

    F = add Sprite Font object.

    S = add Sprite

    9 = add 9 patch object

    B = add tiled backround

    D = add dictionary

    A = Add Array

    F = Add function

    Commonly used Behaviours (a modifier key for behaviour could be used)

    Alt+S = Add solid behaviour

    Alt+P = Add pin behaviour

    Alt + 8 = Add 8 direction

    Alt + B = Add bullet behaviour

    Alt + N = Add sine behaviour

    Alt + F = Add Fade behaviour

    These are just suggestions, but I think you get the point.

    Currently you have to:

    1. Select the object

    2. click "add behaviour"

    3. then scroll to find what you want

    4. select the behviour

    5. Click "Add"

    All those steps can be removed with simple shortcuts and Quickbar.

  • One thing I don't like about Custruct 3 is that the UX design is pretty bad. It's pretty clunky to create stuff, and to add behaviours etc. So here's a little quick mockup i made that could speed up the process a bit.

    Any chance we can get something like that?

    If an object is selected. Just click the desired Behaviour from the toolbar to add it. (Behaviours would be greyed out if nothing is selected)

    If you need a another sprite or 9 patch. Just add it directly from the toolbar.

    Effects and other stuff could be added as well.

    It would be best if the toolbar is customizable because some people use certain things often, and some people use some things less.

    One alternative is that the quick bar has 2 states... one when nothing is selected, to create stuff. And one when something is selected to add behaviours and effects etc.

    Some other useful stuff[b/]

    Keyboard Shortcuts in layout view.

    T = add Text object

    S = add Sprite

    9 = add 9 patch object

    B = add tiled backround

    Alt+S = Add solid behaviour

    Alt+P = Add pin behaviour

    and so on.

    Many commonly used tools and behaviours needs easier ways to add them. The layout view is Pretty clunky to work with, and could use a good update in usability.

  • Every time i preview my project in firefox or safari, title screen background video does not work. anyone encountered same problem? tried mp4 and webm.

  • I've been trying to test a prototype on iPhone but the browser object "request fullscreen" doesn't seem to work in either safari, chrome of firefox, on iOS.

    In safari you can turn the phone to get landscape fullscreen, but this app is designed for portrait.

    Anyone have any tips or tricks on how to preview the app fullscreen in portrait mode on iOS?

    Any help appreciated.

  • I'm not trying to do anything at all at the moment.. Haha... I'm just playing around with expressions.

    I just wondered why conditional expressions required an else in the first place. Yeah I know I can set else to self.variable ...

    But it just didn't make sense that It would be required, unless there is a technical reason? But i guess it's just Scirra who can answer that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there any way to close of a conditional expression without an else?

    For example:

    Set A to: A = 100 & X > Y ? 20 : 100

    This expression produces a "flicker" because there's no way for me to not use the else part, and I have to set it to something.

    I actually don't want to do anything on the else part. Is there any technical reason why you have to add else? there doesn't seem to be any expression for "do nothing"

  • I think most of these "how many objects" performance tests so pointless.

    Well. Pointless in one sense but extremely useful when finding bottlenecks. You might never push any real project to move 200 objects with slices at once, but it's pretty obvious that in scenarios like this you do stumble across some odd stuff that might lower the overall performance of your game, so you find ways to use those things sparsely, or work around it to have your game perform at it's best. Who wanna play a slow laggy game? If your games runs well on lower spec hardware, that's more $$$ because more people can play it.

    When it comes to game design in general, games often tend to push the limit of what the hardware can handle, even if you're targeting Mobile or desktop. Either some are more gpu heavy with breathtaking graphics and effects, or other awesome features. It depend on the idea. I would rather have my idea limited by the code rather the hardware. Code can always be optimized, but with hardware you have to wait for the next new tech.

  • Ashley I checked your example, and it runs fine here, but the problem arises when you need to set Family:Self.FBaseX & Y for every moving car. It's one thing to do it one time on a click, but when you have to update all of the slice positions to the base, you have to use For Each, and there's no other way around it.

    Your example works great for static objects, but when those objects are moving for each becomes the bottleneck. The Container approach actually performs better for many moving objects, but is a mess to work with.

    https://www.dropbox.com/s/7rumquk5ufj0b ... t.c3p?dl=1

    Container example: C2 runtime - 200 moving objects. 45% CPU usage (60fps)

    Container example: C2 runtime - 200 static objects (just rotating scene) 33% CPU usage. (60fps)

    Ashley Optimized example: C3 runtime - 200 moving objects. 100% CPU usage. (15fps)

    Ashley Optimized example: C3 runtime - 200 static objects (just rotating scene) 15% CPU usage. (60fps)

    Maybe there's some features I'm not aware of, but I can't figure out any sensible and cheap way to move a lot of cars in this example without using containers. Disabling the for each loop, and the events no longer work.

    If C3 had some feature to reduce the reliance on for each loops so you could pick or associate several objects much like how containers work, that would be the biggest performance boost in my opinion. There's so many times I got stuck and wish I knew how to create plugins and behaviours so I could get around those high level for each loops.

    Don't get me wrong. What you're doing with the C3 runtime is Amazing. But in this case I think this is not really a performance issue, but rather a lack of feature issue. In those cases it's better to rely on Behaviours (and Container workarounds) because they loop instances a lot faster, but there's not behaviours for everything, or the built in ones are overly simplified, and not very flexible.

    Crossing my fingers on some nice new features to get around using for each loops in events. Keep up the good work!

    Edit: Updated numbers with some higher count.

tunepunk's avatar

tunepunk

Member since 2 Mar, 2014

None one is following tunepunk yet!

Connect with tunepunk

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies