Can you share your project file?
Save the last movement angle in an instance variable. Something like:
Sprite 8Direction is moving : Sprite set movAngle variable to self.8direction.AngleOfMotion
Please double-check the "Collision mask" setting in Physics properties. If the sprite is animated and has more than one frame, check that the correct polygon is set in all frames.
Yeah, never use Trigger Once with objects that have multiple instances. I suggest adding Timer behavior to your plants, it's the easiest way to track the growth of each instance independently.
Not sure if I understand the problem. If you want the camera to follow your character, you need to add ScrollTo behavior to it. Pathfinding should not be causing any problems. Make sure that the character is inside the layout bounds, or enable Unbounded scrolling in layout properties. Also check that ScrollTo behavior is not added to any other objects.
If you want to see multiple characters on the screen and zoom/scroll the view accordingly, take a look at this demo:
howtoconstructdemos.com/auto-zoom-and-scroll-the-screen-to-fit-multiple-characters
You can use Drag&Drop, but then you'll need to restrict the circle movement programmatically.
If you want to drag the circle with Physics, you can't use Drag&Drop or Solid - these behaviors are not compatible. Here is a example of a puzzle game where you drag objects with Physics:
howtoconstructdemos.com/physics-puzzler-move-and-re-arrange-blocks-with-mouse-c3p
Construct has anglelerp() expression, which should work the same.
Also check out the example in this post:
construct.net/en/forum/construct-3/how-do-i-8/ragdoll-stand-171547
howtoconstructdemos.com/roller-paint-demo
Develop games in your browser. Powerful, performant & highly capable.
You should do something like this:
Variable isEmpty=1 for "y" to 0 a floor(TileMap.Height÷16)-1 for "x" to 0 a floor(TileMap.width÷16)-1 TileMap: tile (loopindex("x"), loopindex("y")) >=0 ..... Set isEmpty to 0 ..... Stop Loop ..... Stop Loop Compare variable isEmpty=1 ...... Tilemap destroy
You can loop through all values in the array and compare each element - if it's within the range, increment a counter variable.
Nilom
I can actually reproduce this issue - the value set to the logged_in variable in the script is not saved for some reason. And WackyToaster is right - setting the variable as static fixes it!
So even though variables in functions preserve their values after "waits", seems like they still work differently from static variables.
Try setting "logged in" and "error message" as a static variable maybe? Otherwise they will reset to default value after a tick
Local variables in functions are essentially static and are not reset until the function is finished.
Member since 26 May, 2016