dop2000's Recent Forum Activity

  • On the top bar click View and then check "Properties bar"

  • You can access variables by their string name using scripting, but I don't think the same is possible with any expressions.

    You will need to invent some way of encoding these expressions into JSON, and create a parser for them.

    For example,

    {requires: "InventoryDic,Banana,3"}
    

    or

    {requires: {type: "dictionary", name: "InventoryDic", key: "Banana", val: "3"}}
    

    Then you can have a function which reads and processes this data.

    Say, if the type="dictionary", then you pick an instance from the AllDictionariesFamily with the object name="InventoryDic", and read the key "Banana" from it.

  • 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 Apply Impulse At Angle angle(mob.x, mob.y, self.x, self.y)

    Also, using Physics and MoveTo with the same object may cause problems.

  • You should add some punctuation marks, it's difficult to understand you.

    If you are using Physics behavior, you should avoid setting object angle directly.

  • It's entirely up to you. Global variables are easier to deal with, but may become difficult to manage if you have lots of them.

    You can have a mix of both. For example, I prefer to keep some values in the dictionary (say, game settings). And others, which are frequently used, in global variables.

  • Can you post the entire event sheet or your project file? It's difficult to guess what is wrong without seeing the actual code.

  • I'm not sure how to upload image to the server. You can't just save it, because the game is run locally on user's machine, not on your server. You'll probably need some PHP script which will actually write the file, but I don't know how to pass binary data to it. Try searching on stackoverflow

  • .

    This will only work in a desktop game. In a browser game you don't need any of that, just use Browser Invoke Download CanvasSnapshot

  • I don't know if it's a typo on your screenshot, maybe you have the word "resource" spelled differently in the instance variable and in the condition. "ressource_description".

    If this is not the case, try running the project in Debug Mode and check all instances of the Text object.

    Also, instead of "Pick By Evaluate" you can use "Text Compare Variable" condition.

  • If your audio files have just numbers for names (1, 2, 3 etc.), then use str() expression:

    Audio Play By Name str(Sprite.AnimationFrame)
    

    Also, AnimationFrameCount is the quantity of frames. You need AnimationFrame.

  • What you described is a very complex and inefficient method. You only need one sprite, not 8. Here is a much easier way:

    dropbox.com/s/9wmlzeyrugtr17w/HP_Display.c3p

    If you need different images for different lightbulbs, you can add them as frames, and set animation speed to 0.

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