dop2000's Recent Forum Activity

  • I must admit, I don't understand the problem. The dirt tilemap is on a layer above the grass tilemap, that's why dirt tiles are above the grass. What is wrong with this?

  • Triggered events like "On start of layout" or "Object On Created" may be executed in an order different from their order in the event sheet. In your case "On created" is triggered before "On start of layout".

    The easiest solution is to add "Wait 0" action to the beginning of your "On Created" event - this means "wait till the end of tick", and will ensure that the remaining actions will run after all other events in the current tick have finished. You won't need to use signalling, which is not a good solution here.

  • Access to the file is denied

  • Your WASD controls are trying to move the player before the MoveTo is finished. So MoveTo and 8direction behaviors are fighting each other. You need to add a condition "Player MoveTo Is NOT moving" to WASD events. And also use that condition in your Jump event, because the way you are checking "jumping" boolean variable is wrong, and the jump is also buggy.

  • Why are you spawning a new crosshair? Instead of "Spawn Crosshair at (x,y)" use "Crosshair set position to (x,y)" action in your event. This will move the existing crosshair instance to the specified position.

  • It's impossible to understand what's going on in your code. But you are definitely using "Trigger once" wrong. You should never use it with objects that have multiple instances - this may cause nasty bugs which are very difficult to track.

    Don't use "Trigger once" in loops or as a single condition in a sub-event. Don't use it as the first condition in an event. In fact, better don't use at all unless you have a clear understanding of how it works.

    If you want, for example, to change the animation only once, use "Animation is NOT playing" condition instead of "Trigger once".

  • Don't spawn it when the player moves. Put one instance of the crosshair sprite on the layout in the editor, or create it once on start of layout. When player moves - change the position of the existing crosshair instance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can open it in r178 if needed.

  • I read your post about 10 times and still don't quite understand the problem.

    You are using MoveTo behavior to make a "jump" in a top-down view game, right? And during the jump you are disabling 8direction? And it's not re-enabled until you release and press WASD keys again?

    Could you post your project file or a screenshot of events?

  • You need to show your code of share the project file.

  • You can move grass tiles to a separate tilemap and add PF cost to it.

dop2000's avatar

dop2000

Member since 26 May, 2016

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