dop2000's Recent Forum Activity

  • If you need to recognize the "swipe up/down" gesture and then scroll - you can use Touch AngleAt and SpeedAt expressions. With mouse it's a bit more difficult. On click remember mouse position, then while button is still down, compare distance and direction and depending on these values start scrolling.

    If you want to scroll with mouse, by dragging the sprite, then it's a whole different story.

    Like I said, you didn't provide detailed explanation of what you need.

  • Why do you set SCROLL_Y on every tick?...

    You need to post your capx and detailed explanations of how it's supposed to work. I have no idea of what's going on on your screenshots.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check out this example I made for another post:

    dropbox.com/s/gk1w7g9njs5gwj7/RotatingKnob.capx

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

  • 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

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