dop2000's Recent Forum Activity

  • If you want to know if the function is called or not, put Browser-Log "Function is called" action inside the function.

  • Yes, now "SetTimeText" should be called regardless of TimeText position.

    You can put lots of Browser-Log actions in different places of your code, to see which functions are called, in what order, how variables are changing with different events etc.

  • Add Browser object to the project. Add this event:

    Browser Log "Left " & ViewportLeft("HUD") & " Right " & ViewportRight("HUD") & ... and so on, as many values and variables as you need.

    Run the game, press F12, open Console tab and check the output.

    You might also want to run your project in Debug Mode, so you could pause at any time, check variables, objects etc.

    Browser-Log and Debug Mode are two main troubleshooting methods.

  • I'm guessing your variables LastTouchX and LastTouchY are inside of the viewport, that's why "SetTimeText" function is never called.

    You can add debug output to event 157 - Browser Log ViewportBottom/Top/Left/Right and LastTouchX/LastTouchY. Run the project, open console and check the values.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use custom obstacles instead of "solids". You will have to place invisible sprites on empty spaces. Then add "X" and "O" sprites as custom obstacles for pathfinding.

    I prefer to create an invisible tilemap and use it as an obstacle map. Set tiles on this tilemap where you need obstacles. See this demo:

    dropbox.com/s/isnc7nm26ekdv8q/PathfindingFTL.capx

  • Is this a Construct 2 project? These plugins are probably not compatible with C3, and because Cocoon service is no longer working, nobody will bother porting them for C3.

    You can send me the project, I'll remove the plugin and send it back to you. You'll have to add another plugin for ads. My contact email is here.

  • relixes c3p is actually a zip file. You can rename it to zip, unpack into an empty folder and search for the plugin name in project files. For example, if you search for "MoveTo", and it's found in Character.json and Enemy.json, you will know which two objects are using this behavior.

    It's the same in C2, only easier, because all objects are listed in one .caproj file.

  • is it possible to have multiple return values, also to name those as well?

    mOOnpunk Say, you have a function that returns player health, player speed and player name. So how are you supposed to call this function in an expression?

    If you need a function to "return" multiple values, you can do this by writing them to global variables, or to an array/dictionary, or put all values into a single string (comma-separated for example).

  • You can add all objects to a family and use Family.ObjectTypeName expression.

    There is also "System Pick last created" event which may be handy.

  • Great feature, can't wait to use it!

    Ashley, could you make it so that function parameters are displayed with their default values? For example, display "number playerScore=0", instead of just "number playerScore".

    Also, do I understand correctly that the default value for each parameter will be automatically suggested when you are adding an action or expression to call this function?

    Will it be possible to omit parameters when calling a function, if you want to use their default values? Or maybe hide parameters with default values on the event sheet. This will make function calls shorter and easier to read.

dop2000's avatar

dop2000

Member since 26 May, 2016

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