dop2000's Recent Forum Activity

  • Did you see the official multiplayer examples?

    There are also tutorials:

    construct.net/en/tutorials/search

  • Yeah, you are right, something weird is going on.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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!

  • "On click" is a trigger, it can't be inverted. You can use two conditions:

    Mouse Cursor over object + Mouse left button is down -> Set frame 1

    Else -> Set frame 2

  • You can use replace() expression.

    Set text to replace(string, "Martha", "[color=#ff0000]Martha[/color]")

  • If you don't want to use an array or JSON, you can use a bunch of variables.

    You will have to add events for crafting each item. For example, to craft a table, first check if wood>=4, subtract 4 from wood variable, add 1 to table variable.

    But with more items this system will quickly become unmanageable. I strongly suggest learning arrays or JSON.

  • You do not have permission to view this post

  • Well, I don't know your game. I assume there is a tilemap? Like I said, these are two different approaches:

    1. Create invisible sprites on frozen tiles with the required physics properties.

    2. On every tick compare the tile under the character. If it's frozen - temporarily change the properties of the tilemap or behavior. We do this in our game - when walking on ice tiles, 8direction deceleration is reduced, so the character is sliding.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 248 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
  • x4
    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