dop2000's Recent Forum Activity

  • I think every time you click, two events are triggered.

    I suggest you use "System is within angle" condition:

    Mouse On Left button clicked
    
    (subevents)
    .. Local variable a
    .. Set a to angle(player_hitbox.x, player_hitbox.y, Mouse.x, Mouse.y)
    
    .. a is within 30 degrees of 0 : Simulate pressing right
    .. a is within 30 degrees of 90 : Simulate pressing down
    .. a is within 30 degrees of 180 : Simulate pressing left
    .. a is within 30 degrees of 270 : Simulate pressing up
    
  • You can get the real text size using expressions Text.TexWidth and Text.TextHeight

  • Add Browser object to your project. Add "Browser Log" action to the events you want to debug.

    Start the preview, press F12, open Console log and check your debug messages there.

  • The code should work. How do you know that physics is not disabled, have you checked in Debug mode? Try adding Browser Log action to these events, see if they fire. Check collision polygons in all objects. Or maybe some other event is enabling the behavior.

  • Export the game as debug APK. Then transfer this APK file somehow to your phone. You can connect the phone to your computer with USB cable, or send the file by email etc.

    Then locate this APK on your phone and tap it to install.

    You may need to allow "installing apps from unknown sources" in your phone settings.

  • It's not recommended to drag physics objects when Physics is enabled.

    But what you described should work. Try something like this:

    Sprite is dragging
    
    ..Sprite is overlapping PinkArea : Sprite set physics Disabled
    
    ..Else
    ..Sprite is overlapping YellowArea : Sprite set physics Enabled
    
  • If the boxes should not move, simply set them as immovable.

    If they need to be moving, it may be difficult to get rid of that twitching. You can try experimenting with settings like elasticity, friction etc. Or briefly (for 0.1 seconds) set them immovable with an event, maybe this will calm them down..

    If your main concern is the gap, you can decrease the size of collision polygon in the box sprite by 1px at the top of the box.

  • I suggest using Tween instead. Here is a demo

    dropbox.com/s/z52d010zta1fvkv/TweenValue.c3p

  • Your link says "Access denited".

    Here is a simple demo:

    dropbox.com/s/qlyw8d44vz8zfbo/MoveToCell.c3p

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's not clear what exactly is your question. The easiest way to move a sprite to a certain distance is with MoveTo behavior.

    Since your game is played on a grid, you can also try TileMovement. There are example templates in C3 you can check.

  • You can save the active instance UID in a local variable, then do this:

    System Pick All Sprite
    System Pick Sprite by evaluate Sprite.UID<>savedUID
    

    Or, if you need to still have the original instance picked, you can add this sprite to a family. This way you can pick one instance of the sprite and the remaining instances of the family, and work with them all in the same event.

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