dop2000's Recent Forum Activity

  • The way you are using functions is very wrong. Functions should be at the top level, avoid nesting them under other events or conditions. Also, "Every X seconds" inside the function won't work.

    And that chain of functions calling each other is completely unnecessary..

    Say, you want to spawn a new wave of sharks every 2 seconds. And each wave should contain 5 more sharks. Then you can do something like this:

  • Yeah, you are right! With no sub-events I get ~430 iterations. With two nested sub-events only 163

  • You are adding children to Button family. It should be "ButtonNormal add child ButtonPressed".

    Even if Button and ButtonNormal is the same object, Construct treats the family as a different object in events, allowing to pick family instances independently from object instances.

    Also, the second event should probably look like this:

    Cursor is over ButtonNormal 
    Cursor Left button is down
    .. ButtonNormal pick child ButtonPressed : ButtonPressed set visible
    Else 
    .. ButtonNormal pick child ButtonPressed : ButtonPressed set invisible
    

    And by the way, while hierarchies is an awesome feature in Construct, in this particular case it would be better to use a container instead. Then both objects in a container will exist as a pair, creating one will automatically create another, picking one will pick another and so on.

  • This is odd, I'm getting the same v=237 on my laptop and desktop pc. And then "Maximum call stack size exceeded" error in console.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Weird, I just tested with 2000 sprite instances, and I'm getting the same number of collision checks and the same fps with "Is overlapping" being the first, second or only condition in the event.

  • I did a test to see how many times I can call a function recursively in C3:

    And the answer is 237.

    Is this a hard limit? Or can it be higher/lower on other devices, depending on the amount of RAM etc.?

    Tagged:

  • If you know the IIDs of two instances, you can do this without the family:

    Slot(iid1).AnimationFrame=1 | Slot(iid2).AnimationFrame=2

  • You mean compare animation frames of TWO instances of the same sprite?

    The easiest solution is to use a family. Add slot to a family, and use two conditions:

    Slot animation frame=1
    SlotFamily animation frame=2
    
  • It's not possible. And Construct game won't run properly at framerates lower than 30.

    Perhaps I misunderstood your problem, but if you want your animations to run at 8 frames per second, you need to set animation speed to 8. They will run at this speed at any framerate.

  • Have you tried changing layout scale? What exactly doesn't work and what did you try?

  • Oh, I forgot about the alpha clamp! We can try it for some texts.

  • Mac and iOS stuff only seem to support it. I tested on Chrome for windows and it does nothing. Oh well, so close.

    Ah, it's a shame.. Thanks for trying!

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 260 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • 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
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies