dop2000's Recent Forum Activity

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Is the background in the canvas transparent? If it is, then you can use this script. If the background is white (opaque), you need to erase the background first, or perhaps modify the script.

  • Dan Blast I see your text contains lots of "^" characters. Do you want to replace them with line breaks? That's what I usually do in my projects:

    MyText Set text to replace(Dialog_Greeting, "^", newline)

    Or you can re-write the contents of the variable:

    Set Dialog_Greeting to replace(Dialog_Greeting, "^", newline)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That data is in JSON format. You need to parse it into JSON object, then you will be able to extract the values.

    JSON parse AJAX.LastData
    Set variable to JSON.get("score_table.id")
    

    Notice that "id" is a number, but other values are strings, for example "position_y":"0". You will need to convert them to numbers using int() expression.

    Set var to int(JSON.get("score_table.position_y"))

  • You do not have permission to view this post

  • 1. it already works

    2. Add Line of Sight behavior.

    On Space pressed
    Player has LOS to tree : Tree destroy
    
  • You need to upload the script to Scripts folder. And this is how to use it:

    But this particular JS script requires transparent background. If you have black images on white background, it won't work. You might need to look for another library.

    Also, I believe the resulting PolygonArray needs some tweaking before you can load it into a sprite.

  • Look at events #16-18 on your screenshot. They are nested inside of event #15. You need to move them to the same level as events #14 and #15.

  • Can you stop posting the same two questions again and again?

    Your character already switches to idle animation. And if you want an answer to the second question, you need to explain it better.

  • You will still need to analyze the pixels to build the shape outline. Writing your own algorithm for that will be very difficult. It's a lot easier to use the script.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 280 followers

Connect with dop2000

Trophy Case

  • 10-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

30/44
How to earn trophies