winkr7's Recent Forum Activity

  • I think you need a for each object_enemies in your on path found statement. I have never really understood when you need a for each statement and when you don't but this may solve your problem.

    In general if something doesn't work I try a for each statement here and there in my code and a few wait 0 statements.

  • a sprite called rocket points in direction rocket.angle=theta (we are using theta as a variable name) to accelerate at a rate r in that direction you can set your accelerations to x=r*cos(theta) y=r*sin(theta).

  • I use lots of functions, mostly passing the UID of an object as the only parameter. On the other side of the function I pick the object by UID. You keep the functions in event files separate from regular non function events, since all functions are global. Don't use any global variables (if you must have them keep them in a dictionary and access them by functions).

    Put all your assets in a single layout you don't use for anything else, this way you know the initial state (or at least where to find what you want to be the initial state).

    When in doubt, make a new sprite with a different name and give it the same images as the sprite it is going to behave like. This doesn't use any image memory since they all get merged. So if on one layout a sprite has drag and drop, make it a new sprite with ddrop_name.

    I haven't used the new disabled click layers yet, but that will help keeping menu's above the layout from clicking through.

    Be warry of the parent child code. You have to be careful what happens when you mix them with persist and the debugger doesn't help much with parent child stuff.

    The debugger is great in some ways, but I have never set a useful break point, probably because I use so many functions.

  • Make all the parts in the container children of a single parent ( a parent that has drag and drop).

  • I think all solid collisions are 2d in Construct3 so your problem probably is the way the base of your 3d structures are set in 2d. Why don't you see if you can add one small building to the layout that works, see if you can make it work the way you want. Lots of small steps is the best way to progress and debug.

  • Trigger once while true

    you probably want trigger once while true

    This is from the system reference in the manual

    Turn an ordinary event (which is tested every tick) in to a trigger. For example, if an event plays a sound when lives equals 0, normally this event runs every tick. This plays about 60 sounds a second and would sound pretty bad. Adding Trigger once while true after the other conditions makes the event run just once when it first becomes true. This makes the previous example only play a sound once the first time your lives reaches 0. It must be the last condition in an event.

  • Make sure you didn't turn off collisions somewhere.

  • I got jittery effects from solid behaviors and the pin some time back. I don't know the details of your problem but you might try using moveto for the follower rather than pin.

  • I suggest you get your idea to work in 2d first, so you can see what is going on from a top down view.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Put ten beams all pointing the same way and originating from points each 4 or 5 pixels over from each other. Then treat each mean separately. The low ones will get blocked, the higher ones will get through. If you make them fuzzy it will seem like one big partly blocked beam.

  • user overlap point. If you put all your sprites in a family you can ask which ones overlap the single point. Then pick the sprite you want if there is more than one in the SOL.

  • Hello;

    The pathfinder works in cells, either a cell is blocked or not (or costs a certain number of move points or not). An object might block two cells in one location but only one cell in another depending on overlap. The path goes from the center of one cell to the next in the path it finds, not a straight line. So if you are two cells up and over 3 it has to go over and then up (you can set it to move catycorner which helps a little).

    It doesn't find the path to the object, it finds a path to the cell nearest the center of the object. It starts at the cell closest to your start object. To move exactly to a place you need to use moveTo. Pathfinder only gets you to the nearest cell.

    hope that helps.

    yours

    winkr7

winkr7's avatar

winkr7

Early Adopter

Member since 23 Oct, 2014

Twitter
winkr7 has 2 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • 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
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies