dop2000's Forum Posts

  • This is either a bug, or you are doing something wrong. Please post your code or the project file.

  • When players die in my game, I want to give them an option to watch a rewarded video and continue playing. What is the correct way to do this?

    Do I need to preload the rewarded video in advance? If yes, when is the best time to preload - at the moment the player dies, or earlier? Maybe even at the beginning of the level?

    If I choose to always preload rewarded videos on every level, but my players rarely agree to watch them - can it cause problems with AdMob or other ad networks?

    If I don't preload them, will there be a long delay before the video starts playing?

  • This is strange.. Press F12 in preview and see if there are any errors in browser Console log.

    If this doesn't help, can you post your C3 code or project file?

  • Are you sure it doesn't return any data? Check the contents of hunt_return in Debug Mode, or output AJAX.LastData to browser console (use Browser -> Log action).

    You can also open php script manually from the browser address bar to make sure it echo'es the data correctly.

  • You can try adding more points to collision polygons on the wall corners, to make them more rounded. And also to the player sprite to make it more circle shaped (ignore the warning about too many points).

    If this doesn't help, I would suggest switching to Physics. Set collision shape="Circle" for the player sprite and apply force in the direction you want it to move. It should go through corners much smoother.

  • You can add an array the same size as your tilemap and store the values for each tile there. If you only need 1 value (mining time remaining), you can use 2D array. For multiple values use 3D array.

  • You can probably make something like this with multiplayer plugin. You'll need two applications - one running on the phone and one (NWJS) running on PC. NWJS app can launch programs and manage files, but it will not give you full remote access to the PC.

  • You can resize the sprite in "On image URL loaded" event:

    Sprite set size to circle.width, circle.width
    

    Or, if you want to keep aspect ratio:

    set variable n to max(Sprite.width, Sprite.height)/circle.width
    Sprite Set size to self.width/n, self.height/n
    
  • This is the standard Text plugin, that comes with Construct. I don't know why it's not recognized. Probably the file format has changed too much in 8 years.

    Try downloading release 82 here, maybe you'll be able to open the file.

    scirra.com/construct2/releases

  • I don't know how advanced these cheating tools are, maybe a simple obfuscation will do the trick. For example you can store the number as text with some random characters in between: "d9u5p"=95. Or replace numbers with letters: "V"=1, "X"=2, "B"=3 etc.

    And, a hash value will be not possible to find it in the Cheat Engine?

    Yeah, but Cheat Engine doesn't know that you are using hashing, so it will not be looking for it.

    See this demo:

    dropbox.com/s/y5oru3mfi1hwpco/HashDemo.capx

    It requires CBhash plugin.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Did you set animation speed to 0?

    Also, why webstorage?? This plugin was deprecated years ago! Use Local Storage instead.

    If something doesn't work, try debugging - run the project in debug mode, print the filename to a temporary text object, check browser console for errors etc.

  • If you need to temporary switch orientation to show something simple (like a splashcreen), you can fake it - rotate all graphics on the layout or the layout itself by 90 degrees.

  • I would probably make two separate variables:

    MusicVolume - a number from -100 to 0, changing with the slider.

    VolumeFade - a number from 0 to 1, changing with lerp or some other method.

    During the crossfade, set music volume to (MusicVolume/VolumeFade)

  • What photo? I don't see any photo.

  • One option that can help is protecting your sensitive variables with a hash. For example, every time you change Health variable, calculate a new hash for it. Every time you need to check if player has enough health, also check if the hash is correct. If the hash is wrong - you know that the player is trying to cheat.

    This, of course, will not make your game completely unhackable, but I believe people will not be able to cheat using automated software like Cheat Engine.