Asmodean's Recent Forum Activity

  • My idea for the difference between 'windowidth Evaluate' and 'windowidth Condition'. The 'windowidth Condition' uses short-circuit evaluation, the 'windowidth evaluate' the normal logical and operator.

    https://en.wikipedia.org/wiki/Short-circuit_evaluation

  • Lets say I need a number to be rounded to the nearest multiple of 5, 10, 32... etc

    Examples:

    Multiples of 5:

    0, 5, 10, 15, 20 ,25

    12 would = 10

    int(x/5)*5 that would be from your example int(12/5)*5 <-> int(12/5)*5 <-> int(2.4)*5 -> 2*5=10

    Try it yourself with a textbox:

    System| On start of layout -> Text| set text to int(12/5)*5

    [quote:1s4v1dec]

    Multiples of 10:

    0, 10, 20 , 30, 40

    16 would = 20

    int(x/10)*10

    [quote:1s4v1dec]

    Multiples of 32:

    0, 32, 64, 96, 128

    89 would = 96

    int(x/32)*32

    [quote:1s4v1dec]

    What about rounding up or down and not to nearest? As in:

    Rounding down to make 14 = 10 or

    Rounding up to make 11 = 15?

    floor(14/10)*10

    ceil(11/10)*10

    [quote:1s4v1dec]

    I am aware I may have to create a variable, just not sure if there is an expression for this already or if I have to take the number and put it in a formula.

    Also will Round(5.5) = 5 or 6?

    I have only read 5.4 = 5 and 5.6 = 6 in forum examples.

    I never read what would happen if it was in the exact middle.

    Does it just pick up or down randomly?

    Why have you tried it yourself?

    round(5.5) is 6

    [quote:1s4v1dec]

    How sensitive is Ceil and Floor?

    would floor(5.99999) still be 5?

    would ceil(5.00001) still be 5?

    Same here try it yourself.

    floor(5.99999) is 5

    ceil(5.00001) is 6

    That is what they are for.

  • I think that you could have a recursion in one of your functions. That can a cause for a stack overflow.

  • Is this really only Spam or is this an attack against Scirra and the forum? I can't really see a reason to put Korean-Spam in an englisch speaking forum.

  • You have to set the size to the half in Object types properties, then it should work. If you enable/disable the sine behavior in the game and want that the object has the 'normal' size with sine-behavior disabled put 'set scale to 1' in start of Layout

  • I played a little while ago with Bézier curves using the DeCasteljau Algorithm

    http://cubic.org/docs/bezier.htm

    Maybe it's something useful for you:

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

  • You have to do several things:

    1. To change the name, set the name in the project-properties about, in Constrcut 2. That should change the name in the Task-Manger or in the window if you use the windows-mode.

    2. The Taskbar icon.

    That is not so easy. I can only say how to do it in Windows 7.

    Make a png of your icon you want in 128x128 pixel. Put it in Program Files\Construct 2\exporters\html5\icons and rename the the old icon_128.png in something like icon_128.old. Rename your icon png to icon_128.png.

    Now you have to restart Construct 2. After exporting your game, you should now have the new icon. You have to change it back to the old icon or every game you export with NWjs has this icon.

    You can also change in the package-win.json or package.json in Program Files\Construct 2\exporters\html5\nwjs (don't know exactly which one) the logo name with your icon png and put your png in the directory with the icon pngs.

    3. use resource hacker to change the icon of the game self.

    You do all of this at your own risk. Please don't blame me if Construct 2 doesn't work correctly anymore.

  • 1-ui

    That is not a problem with C2. The problem is the lack of a UI-Plugin in C2. C2 is a Game-Engine and not for applications. it's a problem that many game-engines have, the lack of an UI-Framework.

    2-sheets

    Isn't that what functions for? Make a function and use the UIDs as parameter.

    3- (the worst !)

    That is what the plugins are for. If you want to reuse something make a plugin or behavior.

    4-

    Do yo mean instance variables? What is the meaning to change a variable of a sprite that is not in the layout?

    If you want to transfer a variable from one layout to another use a global variable that is what there are for.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Second, I tried to set "tree_bot" & "tree_top" Z-Order depending on their Y position, from top to bottom, so that higher trees are hidden by lower ones.

    I don't see a reason to split the tree in two objects. Can you not achieve what you want, with complete trees?

    In this example that are two complete trees, where the tree behind is partly hidden.

  • Try: SquareTX| Set Offset width to tile.Width, height to tile.Height/2

    But I think you are using the wrong kind of tile for a floor. The tile should more like that:

  • Thanks Jayjay

    I can confirm that with FireFox

    -Disabled: 0.4% - 0.5% engine, and 0.1% to 0.2% draw calls; CPU-Utilization 0%

    -Enabled: 1,6% - 1.7% engine , and 2,6% - 2.7% draw calls;CPU-Utilization 4%-5%

    with chrome the profile in the debug-inspector seems not to work correctly it doesn't update. The CPU-Utilization seems to be correct and this is still 0.1%-0.2%

  • With Chrome, Windows 7 64Bit, C2 R221:

    0.1% engine

    0.1% draw

    no difference between enabled or disabled.

Asmodean's avatar

Asmodean

Member since 31 Jul, 2015

Twitter
Asmodean has 9 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies