dop2000's Recent Forum Activity

  • It usually works the other way around :) You need to post your project and we'll tell you how to fix it.

  • If instances overlap, then I believe "On touched object" can pick multiple instances. Simply add another condition, for example "Pick top instance" to the event.

    If you want to pick the first instance of multitple by index, use "Pick Nth instance" with instance=0 (not 1).

  • One very common problem with Pathfinding behavior is preventing pathfinding objects from colliding and overlapping each other. There are many different methods and ways to approach this, unfortunately, none of them are easy or 100% working. I have two demos, which are also far from perfect, but may be a starting point for someone making an RTS game.

    PATHFINDING

    C3P C3P Prevent pathfinding objects from colliding with each other. Two versions: Avoid overlapping while moving + Avoid overlapping at the target point.

    C3P And as a bonus - accurate Pathfinding. You may have noticed that pathfinding objects almost never stop at the exact target point, sometimes they stop early, sometimes late, sometimes miss it completely. This example provides a solution.

  • Adjust Platform Vector Y. For example, to make a higher jump - "Player Set Vector Y to (Self.Platform.VectorY-200)"

    Detecting when the platform is moving up is different problem. Depending on the behavior you use to move it, you may be able to access its velocity or moving vector (something like Platform.Behavior.VectorY). If not, you can simply place invisible Zone sprites on your layout in places where platforms are going up. When player is jumping and overlapping the Zone sprite, make its jump higher.

  • On the start of layout set high numbers for Physics world stepping, for example 50 and 50, or even 100,100. You need to experiment with this setting, it makes all physics calculations more accurate, but also affects performance.

    Use bigger chain links with much higher density, decrease the number of links. This will make the rope stronger. Say, if I make 100 links with density 2, the rope stretches a little, but doesn't break, unless I start looping it around poles. Unfortunately, it still goes through poles quite easily.

    I guess your method of checking the rope overall lenght can work here, but instead of increasing Lilbot density, you need to decrease its velocity. If the rope becomes stretched, find the nearest pole to the Lilbot and adjust Lilbot's velocity, allowing it to move only towards the pole, not away from it. But I don't know the formulas for that, sorry :)

    You can also try applying an impulse that will pull the Lilbot back (at rope angle) when the rope becomes stretched.

  • That's because "On animation frame changed" is triggered separately per each enemy instance. And inside this event the enemy instance is picked, that's why the bullet is created by this instance.

    If you have an event "Enemy shoot variable =1", it picks all enemy instances with shoot=1, and if you want them all to create bullets, you either need to use "For each" or "Enemy Spawn.." action.

    .

    I don't like using state machines because you have to check lots of conditions on every tick. I prefer Timer behavior. Note, that "On Timer" event can pick multiple instances at once, if their timers expired in the same tick, so you still might need to add "For each"

  • BillyShears You need to download the addon manually from that link I gave you, then install it in Addon Manager. Then restart Construct and try to open the project.

    construct.net/en/make-games/manuals/construct-3/tips-and-guides/installing-third-party-addons

  • You can check all objects in a loop, for example:

    variable correctCounter=0
    For each Object
     Object Is Overlapping Spot
     Object Is animation playing Spot.AnimationName
     Object compare frame =Spot.AnimationFrame
    	-> Add 1 to correctCounter
    
    
    If correctCounter=Object.Count
    	-> display message "All objects correctly positioned"
    
  • The easiest method would be making the same animations structure in both sprites.

    In the Object sprite create animations "red", "blue", "green" - with 3 frames in each (circles "A", "B", "C").

    In the Spot sprite create the same animations also with three frames in each (squares "A", "B", "C").

    Then add this event:

    On Object drop
    Object Is Overlapping Spot
    	Object Is animation playing Spot.AnimationName
    	Object compare frame =Spot.AnimationFrame
    		-> display message "Correct spot"
    	Else
    		-> display message "Wrong spot"
    
  • 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 demo project just like that. There are two levels and different items are sold in the shop on these levels.

    dropbox.com/s/0ex32akdcl7s2ie/ArcherMan3.capx

    You will need to install CSV addon to open it:

    github.com/erenertugrul/construct-plugins/blob/master/ported_plugins/plugins/rex_csv/dist/rex_csv.c3addon

    construct.net/en/forum/extending-construct-2/addons-29/plugin-csv-csv2array-csv2dicti-41868

  • Sounds like the order of events may be wrong in your project. For example, you are trying to access AJAX.LastData before "AJAX On completed" is triggered, or you are writing and reading to/from local storage at the same time, or something similar. You need to post your project or screenshots of the relevant event sheets.

  • If you don't want to preview from the intro/loader layout, as a temporary solution you can create a function "InitializeVars" and add it to "On created" events. (probably not all, just the ones that get triggered first). Remove this function call before exporting the game.

dop2000's avatar

dop2000

Member since 26 May, 2016

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