dop2000's Recent Forum Activity

  • Use Tween behavior -> Tween (two properties) action -> Size.

    In "End X" and "End Y" fields you can put Sprite.Width*2 and Sprite.Height*2, and the sprite will grow twice in size.

  • Your events 13 and 14 run on every tick, 60 times per second.

    You need to move them inside the "On start of layout" or similar event, which is only triggered once.

    Don't just add "Trigger once", it will not work, because you are using "Else". You can try this:

    Multiplayer Is Host
    Trigger once
     ...........
    
    Multiplayer Is NOT Host
    Trigger once
     ...........
    
    
  • Add all your sounds to the project with names like Sound1, Sound2, Sound3, .... Sound10

    Create a global variable SoundNumber.

    On Sprite Clicked 
    	If SoundNumber=10 : Set SoundNumber to 1
    	Else 	: Add 1 to SoundNumber
    
    	: Audio stop tag "mysound"
    	: Audio play "Sound"&SoundNumber with tag "mysound" 
    
  • Does the API key ever change? If not, store it in the php script, don't send it.

    Otherwise, you need to encrypt it:

    construct.net/en/make-games/addons/257/forge-c3-runtimeworkers

  • I believe both these addons only support runtime 2. You need to switch your project to Construct 2 runtime, in project properties under Advanced tab.

  • You need to set button animation frame in event #8.

    I have a good demo on how to save game settings (including sound on/off) in Local Storage, take a look:

    howtoconstructdemos.com/easily-save-multiple-values-in-local-storage

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you have questions about regex, you will have much better chances to get an answer on stackoverflow. Not many people here know regex.

  • Reset Global Variables will reset all global variables in the entire project, even in not-included event sheets. If you want to preserve some value after the reset, there are a couple of ways to do this -

    • you can make a static local variable in an event group. Static local variables are not reset.
    • you can create an instance variable on a global object (array for example), or create a dummy object (empty sprite) and set it as global
    • store it in an array or dictionary
    • save in Local Storage
  • Generate a hash in the app and send it to the script with your other data. In the script, generate the same hash and compare if both hashes match. If they don't match, don't execute the rest of the script.

    CBHash plugin (link to C3 version on the last page):

    construct.net/en/forum/extending-construct-2/addons-29/plugincb-hash-md5-sha-1-sha-39765

    Make sure to use the same hashing function in the php, if you don't know how, try searching on stackoverflow.

    .

    Example:

    You want to send player score to the server. In the app generate a hash MD5(secret_key & score)

    Send to the PHP two values: score, hash.

    In the PHP script, also generate a hash MD5(secret_key & score_received)

    Compare if generated_hash is the same as received_hash.

    Of course, the secret_key should be same in your app and in the PHP script, don't share it anywhere and don't send it with the data.

  • Also, you don't need that airspace sprite, you can use "Is Overlapping at offset" condition. Try something like this:

    On every tick
     Bird X>Nest.BBoxLeft 
    	: Bird simulate moving Up
    
     Else
     Bird Overlapping Ground at offset X=16 
    	: Bird simulate moving Right
    
     Else
    	: Bird simulate moving Down
    
  • Check "Timeout" property on Particles object. If Timeout=1 second, add "Wait 1 second" before creating a new ball.

  • Use projectversion expression.

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