dop2000's Forum Posts

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

  • Tags is the only way to do it. Play music with "music" tag, play all other sounds with "other" tag. When you need to stop all sounds, stop "other" tag.

  • You do not have permission to view this post

  • Are both bullets on the same layer? Maybe one is on a layer with a different scale and that's why it's moving faster?

    You need to upload the project to any file sharing service - google drive, dropbox, mega.nz etc.

  • I don't see any issues in the code. And you have an event that destroys the bullet if its speed >400, so bullets can not travel faster.

    Try running the project in debug mode, when second bullet is spawned, pause the game and compare both bullet instances - check that they are on the same layer, compare their speed etc. Maybe you'll find the problem.

    If this doesn't help, please share your project file. You can remove everything non-essential from it.

  • Yeah, it's a bug on the forum. You can insert the image if you edit your own comment. Or use Imgur.

  • You need to post your project file or a screenshot of your events.

  • Bullet behavior is not a very good choice for this game, where you need to move between walls with pixel-perfect precision. Tiled Movement works much better, have a look:

    dropbox.com/s/faxzep882wm43gw/GoingIntoWall-fixed.c3p

  • Simple Bullet behavior should do the trick. Set "Set angle=No" in Bullet properties, if you don't want objects to rotate. When object is created, set Bullet angle of motion to 90 degrees.

  • Even with all these explanations I don't understand how all this is supposed to work. And I don't see where you are searching for the letter "a" in your code.

    Anyway, just follow my suggestions: For the first task, check if the word exist in the array, if not - add it to the array. For the second task, to check if the word contains letter "a", use find(word,"a")>=0 expression.

  • Variable text="your list of words here"
    Variable counter=0
    
    Repeat tokencount(text, " ")-1 times
    	if find(tokenat(text, loopindex, " "), "a")>=0
    		Add 1 to counter
    
    
  • Did you post the correct file? I have no idea what's going on in your code. I don't see the list of words in a string variable, I don't see your attempt to loop through these words and search for the letter "A".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads