Ashley's Recent Forum Activity

  • You do not have permission to view this post

  • Well I'm afraid you can't have both - you have two options:

    1: use the built in behaviors (like 8 direction) which automatically respond to solid

    2: use events to move the object, and add events to handle collisions with solids (which can be pretty tricky).

    For #1, you might get better results using the behavior with an invisible square object which does not animate or rotate, and place the player on top of that. Usually that makes collisions more reliable.

    For #2, it's impossible for Construct 2 to handle collisions with solids for you. Construct 2 does not know what you want to do when an object hits a solid - different games will need to do different things. So you have to set it up yourself with events. That can be tricky - but that's what the behaviors are there for! The behaviors are designed to take care of that for you.

  • You do not have permission to view this post

  • Are you using the latest release of Construct 2 (r63)? We fixed some project corruption issues a few releases back, you should definitely stay up to date!

  • Does this happen every time? Does it affect new projects or just one project?

  • sqiddster, I really can't say. My todo list has like 100 things in it.

  • On System tick - subtract one.

    If you do that, your timer changes speed depending on the framerate, which is probably unfair. If you subtract dt instead of one then the variable will count down one every second regardless of the framerate. Have a read of the Delta-time and framerate independence tutorial.

  • I'm not sure what you mean. Can you show with a .capx? If you don't want the object to get stopped by solids, then wouldn't you just take off the solid behavior...?

  • The best way to "fake" line of sight is try having a sprite like a line connecting two objects (see the "Physics - distance joint" example with C2 for a demo). Then you can check if that object overlaps any solid.

    For distance, check out the 'pick nearest' condition or the 'distance' system expression.

  • "Selected" is a text variable - you're comparing it to a number so it doesn't match! It's not a bug, just how you've set up the events.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • OK, adding reversible animations for next build.

  • Is there a way to script the events and actions instead of using the UI?

    No, it's events only in Construct 2. You could have a look at coding plugins and behaviors in the SDK, but that's generally pretty involved compared to snippets of script.

    s there a way to indicate a color to be used as a transparent color when importing a frame or sprite strip?

    No - Construct 2 supports full alpha channels so I didn't think it was necessary, but this has been requested a lot recently, so I guess other software hasn't caught up yet. I'd better add it - it's on my todo list now!

    latform Vs. Physics

    Physics objects only interact with other physics objects, they ignore other objects completely even if they have the solid behavior. You might be interested in this tutorial on Physics.

    Solid and Physics on a single object should work OK though.

    layer object passing through floor objects

    Generally it's up to your game to make sure the player doesn't get 'stuck' inside solids. The platform behavior won't control your animations or events for you - it'll just try to figure out how to respond to its surroundings, and if it's stuck in a solid it can't really do anything. Your solution sounds like a good idea - invisible detectors are common in games.

    Hope that helps!

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,771,620 followers

Connect with Ashley

Trophy Case

  • 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
  • Forum Mega Brain Made 20,000 posts in the forums
  • x126
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x5
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x42
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs