dop2000's Recent Forum Activity

  • You can use Line of Sight behavior to check when the object is in sight or near another object. If you want "E" key to work only when the character is near the door, create an event with two conditions:

    Keyboard on E pressed
    Player has LineOfSight to door
    

    It's also possible to use overlapping or collision checks, for example "Overlapping at offset".

    I suggest studying example projects and games included in Construct.

  • Maybe the player's collision mask is too big? Or there's some other solid object in that spot.

    I see you have playerControl sprite - run the game in debug view and check that too.

  • Trigger Once is one of the most misunderstood features in Construct and many people are using it incorrectly, which often causes serious bugs. My advice - don't use it unless you are 100% sure what it does and how it works.

    It's hard to tell by your screenshot why the code doesn't work. What exactly are you trying to achieve?

    If you want to add 1 utensil to each farci_input, it's much easier to do this manually in the layout editor. Add utensil sprite as a child to farsi_input, configure Orbit behavior and it will rotate around the parent.

  • You mean like a jump? You can use "Set vector Y" action of Platform behavior. Set it to something like -200 to jump up.

    Beta7 So you are saying you found a much better solution. Show it to us please.

  • Did you see the official multiplayer examples?

    There are also tutorials:

    construct.net/en/tutorials/search

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, you are right, something weird is going on.

  • I tried your project and can't reproduce this bug.

    Check the spritefont object in debug mode when it's blank - see if it has correct size, scale, opacity settings and if it contains any text. Also see if there are any error messages in browser console.

    Sorting without array

    This example uses instance variables, which I was suggesting from the beginning. OP wanted to sort global variables.

  • See "collision checks" in the debugger. Over 1000 checks/tick could cause performance problems.

    Also check the CPU Profiler tab to see which events are using CPU the most.

    And of course there are too many objects. If many of them have enabled behaviors (like Bullet, Sine etc.), this is also very bad for performance.

  • You need to parse AJAX response into JSON object. Then you will be able to extract keys from JSON using JSON.get expression. For example, JSON.get("0.class") should return "warrior"

    See the official JSON example in Construct.

    editor.construct.net

    Also here is a tool I made that shows paths to all elements in JSON:

    dropbox.com/scl/fi/3lvdqp1x1v57xy0prahrj/JSON-RecursiveRead.c3p

    I already found another method waaayy apart from what you were telling me before I found the perfect code to sort any car rank points in my game

    Please enlighten us about your method of sorting scores in global variables. Even for experienced developers it's never too late to learn!

dop2000's avatar

dop2000

Member since 26 May, 2016

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