dop2000's Recent Forum Activity

  • You can use global variables to save the state and position of the player.

    Also check out this demo:

    howtoconstructdemos.com/a-system-of-doors-portals-to-travel-between-layouts

  • for some reason even tho changing the ability states has nothing to do with wheter the animation plays,it still gets interrupted and refuses to play.

    How do you change the ability state? Do you need to click something with the left button? This would explain why the timeline is restarted.

    A simple way to test this is to add "Browser Log" action to your event #84.

    I am surprised you have such a big complex project and not using console logging - the most basic debugging tool.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a paid template, check it out (click Demo C):

    construct.net/en/free-online-games/random-level-generator-25484/play

    Please be aware that the dungeon layout is fixed (the number of rooms, their locations and entrances). Only the rooms are randomized.

  • I actually reported several similar issues with the dark theme as bugs and they were fixed!

    github.com/Scirra/Construct-bugs/issues/6155

    github.com/Scirra/Construct-bugs/issues/5908

  • Yeah, you never know which of the two instances will trigger the collision. That's why I suggested to use a function.

    You compare the speeds, and based on the result call the function using either instance A or B as the "active" one.

  • This is odd. To me exFrames=2 looks the best, the future sprite is mostly synced with mouse cursor. At exFrames=1 the red sprite is lagging a bit, but 3 and 4 is definitely too much!

    But there's definitely something weird going on. When I try to record the screen with OBS, it captures two cursors! The "phantom" smaller cursor is usually ahead:

    I'm guessing Windows or Chrome (or both) does something to smooth/enhance the mouse movement. Perhaps it works differently on different machines, DPI, frame rates etc..

  • I don't know of a smarter way.

    Use "Sprite On Collision with Family" event. Inside it compare their speeds using the distance() expression. Based on that - spawn a new element.

  • You can create a function Craft, which will take two arguments - active element and passive element.

    On collision, compare the speed:

    If A.speed>B.speed, then call Craft(A.animationName, B.animationName)

    If A.speed<B.speed, then call Craft(B.animationName, A.animationName)

  • Ok, but I imagine the logic is still the same - the first event picks the active instance. The sub-event picks the passive (overlapping) instance.

  • - water poored on fire = coal

    - fire thrown on water = steam.

    How do you know which item in the pair is thrown on another item? If you use Drag and Drop behavior, then in "On Drop" trigger you will have your active instance picked.

    Element On Drop <- this Element instance is active
    Element is overlapping Elements-Fam <- this Elements-Fam instance is passive
    

    Is this what you are asking, or did I misunderstand the question?

  • I'd like to be able to convert the JS code into C# for me to analyse.

    This is a bad idea. Compiled code will be very different from the original project code (events), and will be heavily obfuscated. You will not be able to make any sense of it.

    And Construct visual programming language is pretty unique, it won't translate into any traditional programming language.

    Your C# experience will definitely come handy, but don't waste your time trying to convert C3 code into C#. Just study a few tutorials and examples and try to create a simple game.

  • You will probably need to use an array as permutation table. (permutation table is essentially an array anyway)

    You can initially fill the array using AdvancedRandom. Then use Array.at(index) when you need a random value from the table. And you can save Array.AsJSON in Local storage.

dop2000's avatar

dop2000

Online Now

Member since 26 May, 2016
Last online 14 Jul, 2025

Twitter
dop2000 has 270 followers

Connect with dop2000

Trophy Case

  • 9-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
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

29/44
How to earn trophies