dop2000's Forum Posts

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • "On touch end" event you can get touch speed and touch angle and use these values to apply momentum to the sprite. For example: "Set Bullet speed to Touch.SpeedAt(0)/2, Set Bullet angle of motion to Touch.AngleAt()". Or, if you are using Physics - "Apply impulse .. at angle .."

    Rotation is trickier. You can use angle(sprite.x, sprite.y, touch.x, touch.y) and distance() expressions to get the angle and distance of the grab point relative to the sprite center. Say, if angle() is counter-clockwise from the angle of motion, rotate object clockwise. Set rotation speed depending on the distance. With physics - set angular velocity.

  • No worries! :)

    I played your game, it's pretty fun! I reached room (level?) 5, but I think after a few rooms it gets a little repetitive. I'm guessing new obstacles and enemies appear on later levels?

    Want to try my latest game? :)

    planetotron.com/Demo

  • Try something like this:

    Set X to min(lerp(self.X, 470.5, 0.3), 470)

  • I'm not sure if this is the same issue, but check out this post:

    construct.net/en/forum/construct-2/how-do-i-18/how-do-i-zoom-and-scroll-to-a-132242