dop2000's Recent Forum Activity

  • Probably your AJAX data is downloaded in one large chunk, that's why it's not triggering On Progress event.. Or it may be a bug.

  • Oh, thanks, I forgot about try-catch!

  • Be aware that C2 functions are not the same as C3 built-in functions. There are quite a few key differences.

  • At runtime. I want to get rid of the errors in console log when a non-existing function is called.

  • I'm using runtime.callFunction to call C3 functions by name. Because there are hundreds of functions in the projects which can be called from dialogues, menus etc., it's much easier this way than creating function maps.

    Is there a way to check if the function with this name exists before attempting to call it?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is possible with function maps, there is a template in C3 showing how to do it. However, I find using function maps really difficult.

    So a much easier option is to call functions by name from a script. (Note, that this will probably not work with advanced minification)

    First save function name in a local or global variable. Then execute this script:

    runtime.callFunction(localVars.FunctionName)

  • Are coal mine and oil pump members of the Minerals family?

    I think you need to change the last event on your screenshot like this:

    Button on clicked
    Block pick instance with UID SelectedLocationUID
    Minerals is overlapping Block
     Minerals destroy
     ...
    

    Also, it's not very efficient to re-create the buttons all the time. You can build the whole menu on the layout with hierarchy, and created/destroy it with a single action.

  • Beyondgodd This plugin doesn't care about collisions. You need to tell it which tiles are walkable and which are not. You can use a separate (invisible) tilemap just for this purpose.

  • There are several ways:

    1. Create an instance variable MineUID on the progress bar.

    2. Add progress bar to the mine as a child. (hirerarchy)

    3. Add progress bar and mine to a container, but then you'll have to make the bar invisible, you will not be able to destroy it.

  • It depends on the size of assets in your game.

  • I prefer tiled background, here is a demo:

    howtoconstructdemos.com/simple-healthbar

    I don't know your game, so not sure what will be the right way to pick Minerals instance. If only one mine can be built at a time and you only need one progress bar, you can pick by UID or custom ID variable.

    If you need a separate progress bar for multiple mines, you can link them with hierarchy, or put in a container, or use MineUID instance variable on the bar object.

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