dop2000's Recent Forum Activity

  • You can't use drag&drop on the same sprite.

    Create another (invisible) sprite with Drag&Drop behavior, say "dragSprite".

    Remove Drag&Drop behavior from the "sangStick".

    Change events to this:

    dragSprite is dragging -> set AreaAngle to angle(sangPad.X, sangPad.Y, dragSprite.X, dragSprite.Y)

    .................set AreaDistance to distance(sangPad.X, sangPad.Y, dragSprite.X, dragSprite.Y)

    The rest is the same.

    When not dragging, return both sangStick and dragSprite to sangPad posision.

  • Here is a much smaller and clearer capx demonstrating this problem:

    https://www.dropbox.com/s/017qy6lc3alz9 ... .capx?dl=0

    Blue sprites are not "pickable" for several seconds after they have been created.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What are you talking about?

    Sprites are displayed the way you create them, unless you change their angle on the layout, in events, or use some behaviors that can change their angle (8-direction, bullet etc.)

  • Your image is not loading.

  • Collision checks are only performed if you have any events like "is overlapping" or "on collision" with this object. Or if you are using behaviors that rely on collision detection (solid, bullet etc.)

    Try putting several text objects on the layout and run it in debug mode, you'll see that they are generating 0 collision checks.

  • You are setting instance variable pickedUp on a slime! Each slime has its own pickedUp variable.

    When you pick one, its variable is set to true.

    The next time your character is overlapping another slime which has pickedUp=false, that's why you pick up the second slime.

    You should create a boolean variable on the character (Sprite2).

  • provintia7

    I don't know why in your example it doesn't get picked even after 3 seconds..

    All I know that it's definitely a bug and you should report it.

  • Run your project in debug mode, see what's going on with PickedUp variable.

    Instead of "toggle" try "Set PickedUp to True".

  • Yes. Or you can add it as a second condition to "is overlapping" event.

    Player is overlapping chicken

    variable=false

  • In the "Is overlapping" event create a sub-event "Chicken pick top instance" or "Chicken pick closest instance" and then pin it.

    And of course you need to set some variable or instance variable (ChickenPickedUp=true), so then other overlapping events will be ignored.

  • Here you go:

    https://www.dropbox.com/s/h67nu1sqfome3 ... .capx?dl=0

    You can replace event #2 with this:

    Small->Set position to Big

    Small->Move at angle (angle=a, distance=d)

  • tunepunk

    In this case you have to wait not just 1 tick, but several seconds! Objects are created, they are moving on the screen and everything, but you can't pick them with events for several seconds.

    And somehow this event fixes it:

    On object created -> Wait 0

    Which doesn't make sense, because there is nothing else in the event, so "wait 0" should have absolutely no effect.

dop2000's avatar

dop2000

Online Now

Member since 26 May, 2016
Last online 3 Feb, 2025

Twitter
dop2000 has 257 followers

Connect with dop2000

Trophy Case

  • 8-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
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies