dop2000's Forum Posts

  • I'm telling you again - your conditions in events 2 and 3 are the same! It means that when you do the hold gesture over L1, both events are triggered.

    And also, why did you put dt*-1 in lerp? Your sprite will move in the opposite direction! The third parameter in lerp function here is the speed. "dt" is the duration of one tick, if you want your sprite to move slower, change it to dt*0.5, or dt*0.1, but don't use zero or negative values!

    .

    It looks like you are changing things randomly hoping it will start working miraculously. Don't do this. Remove everything else except event #1 from your code, set SCROLL_Y variable to 1000 and see how it works. And then move from there.

  • I'm guessing the problem is with Owner and/or Waypoint_index instance variables. In events 4 and 7 you are picking waypoints based on these variables. So maybe when a new enemy is spawned, these variables are not set to correct values. Run your game in debug mode and check.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Your events 2 and 3 are the same, they are probably triggered both at the same time and SCROLL_Y variable doesn't change because you subtract 500 and then add 500.

  • You can easily do this with lerp.

    To scroll up - set variable targetY to sprite.Y-500

    To scroll down - set variable targetY to sprite.Y+500

    On every tick: set Sprite Y to lerp(self.Y, targetY, dt*8)

  • I don't really understand your code, but I think events from both groups are triggering at the same time and messing things up. You need to activate/deactivate groups, making sure that only one group is active at a time. When scrolling up - activate first group, deactivate the second. When scrolling down - deactivate first group, activate the second.

  • C2 has no future, move to C3.

    Cordova CLI and PhoneGap, cocoon.io seems to be dead.

    For Admob integration you can try Enhance service:

    enhance.co

  • Yep, I had this bug too, ended with the same workaround - destroy and re-create the file chooser object.

    By the way, you can keep the file chooser button hidden off-screen and use the following code to trigger it:

    Browser Execute Javascript "myFileChooser.click()"

    where myFileChooser is the ID of FileChooser object.

  • The gif you posted doesn't work.

    You need to share your capx. Also, take a look at the Spriter plugin:

    construct.net/en/blogs/construct-official-blog-1/spriter-support-in-construct-2-803

  • See these two capx:

    1 Smooth angle change:

    dropbox.com/s/6l3nvjbu9w45lpr/8DirectionAngle.capx

    2 Mirroring the fish depending on the movement direction:

    dropbox.com/s/4orl802xp8rk5eo/FishyMovement.capx

  • They are not hacking the leaderboard. They are posting fake http-requests with fake scores to the leaderboard. You can't do anything to prevent this. The only solution I know of is to encrypt/hash the scores, but this can still be hacked.

    .

    I remembered a story I witnessed a few years ago. A big international travel organization held a contest on their Facebook page. Every day they posted a video clip filled with small clues about some place anywhere on Earth, and you had to find and tag this place on Google Maps. They were giving $1000 to the fastest winner every day and a grand prize of $10.000 on the final day.

    I tried my luck a couple of times and it took me about 1-2 hours to find the place. The winning times were under 1 minute! It was impossible to even watch the entire video in 1 minute! So people were obviously cheating. The organizers ignored these accusations until someone posted detailed instructions describing how their contest was hacked. Needless to say, thousands of people who spent days trying to win money were furious..

  • You can generate a hashed string from the score value and send it together with the score. Then validate this hash to check if the score is valid. I don't know if EasyLeaderboard allow this though. Still, this will not protect from an experienced hacker.

  • If you are giving valuable prizes for best scores, you should not use services like this. You don't even need to be a "hacker" to submit a fake score, there are tools and apps that make this job really easy.

  • There is also a ternary operator:

    Set text to X>(Y+50) ? "yes" : "no"

  • Wow, it looks really cool! Great job with particles!

  • Resizing looks smooth in the editor because you have 8x8px grid (the same as your tiled background size). If you disable "snap to grid" you will see that it works the same as in the preview.

    To fix this, set TiledBackground Hotspot=Left and set Angle=180.