dop2000's Recent Forum Activity

  • Yeah, I really wish dragging events would be improved. Sometimes it’s impossible to place an event inside another one without creating an empty sub-event first.

  • You can try making the iframe object global - then it will not be destroyed when switching to another layout. You should be careful though not to create duplicate iframes when returning to the first layout.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pics would definitely help to understand your question. You can upload them to any service like imgur and post links here.

  • Why do you use Browser.execJS? All these operations can be done with the Date plugin.

    Also, your 4th event on the screenshot will run AJAX request on every tick while the condition is true - the server may not like it and will ban your IP address.

    Can you show the AJAX response - JSON contents?

    To convert the current time to minutes use these expressions:

    // Minutes since midnight (UTC time)
    int((Date.now % 86400000) / 60000)
    
    // Minutes since midnight (local time)
    Date.GetHours(Date.Now)*60+Date.GetMinutes(Date.Now)
    
    // Minutes since the start of the current hour (local time)
    Date.GetMinutes(Date.Now)
    
    
  • Ok, so modify the code a little:

    + Array: For each XY element
    + Array: Current value = 1
    ----+ Sprite: X = Array.CurX×64+832
    ----+ Sprite: Y = Array.CurY×64+64
    -----> Sprite: Set visibility Visible
    
  • You can add instance variables to the sprite — indexX and indexY — and fill them with values: indexX from 0 to 4, and indexY from 0 to 9.

    Then you’ll be able to pick the sprite instance corresponding to any array element.

    Another option is to pick the sprites based on their position. Assuming your first sprite's position is (0,0), you can do this:

    + Array: For each XY element
    + Array: Current value = 1
    ----+ Sprite: X = Array.CurX×64
    ----+ Sprite: Y = Array.CurY×64
    -----> Sprite: Set visibility Visible
    
  • As I explained in your other post, you need to pick the enemy instance. Picking is very important in Construct. If you don't pick the correct instance or instances, the event applies to all instances.

  • In the second event, you need to pick the enemy instance which each Pikmin is pinned to.

    For each Pikmin
    System Pick Enemy By Evaluate Enemy.UID=Pikmin.Pin.PinnedUID
    

    That's why I suggested using the hierarchy - it's a lot easier because you can use "pick children" and "pick parent" conditions.

  • I can't read a word but it sure seems like somebody went through a lot of effort to tease out a lot of the engine quirks.

    That's WilsonPercival (Igor in RL), he's a brilliant programmer, started with Construct Classic. He has submitted over 800 bug reports! So yeah, he probably understands the engine better than any of us.

  • There was a similar thing my friend done (its in russian though), with some insights he managed to dig from a lot of testing and digging the internals.

    Hey, you are friends with WilsonPercival too! He has done a lot for C3, but you should take some his findings and suggestions with a grain of salt, though. For instance, I really don't like his idea of using "Wait for previous action to complete" instead of "Wait 0". Just because it works doesn't mean it's correct.

    I agree that a community-driven list of Best Practices would be a great idea, but ideally we'd need Scirra's involvement (for moderation and guidance) to keep it accurate and prevent risky guesswork.

  • I managed to have the "on path found" work, but no more than 2 butterflies can move at a time, and I need ALL of them to be moving

    Can you show your updated events?

  • Please study a few examples on how to use the Pathfinding behavior. It's not a good idea to use "find path" action on every tick. And you need to wait for the "On path found" event before moving along the path.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 273 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