Thanks, it's working fine. but i don't understand about math in this matter, but its ok i will learn it.
I through together a quick example for you. You can easily restrict the x position of the slider by setting the drag and drop behavior to just use the horizontal axis and then defining a maximum distance from the center of the background. To get the slider object to stay on the curved paths Y position though, you need to do some math. You'll need to figure out the radius of the circle path you want to follow. Everything else should be provided. https://drive.google.com/file/d/1RYz8XO_3vOnp4fzQUoVHnk5Ojx2aY5oj/view?usp=sharing
I through together a quick example for you. You can easily restrict the x position of the slider by setting the drag and drop behavior to just use the horizontal axis and then defining a maximum distance from the center of the background. To get the slider object to stay on the curved paths Y position though, you need to do some math. You'll need to figure out the radius of the circle path you want to follow. Everything else should be provided.
https://drive.google.com/file/d/1RYz8XO_3vOnp4fzQUoVHnk5Ojx2aY5oj/view?usp=sharing
Hello,
Sorry, I think construct 2 and construct 3 have the same action so if I use construct 3 and I use construct action 2 it can still run. I am asking in construct 2 forum because in this 2 construct forum there are many questions about curves.
i think i can't use it, because it's automatic following the line. how about drag the sprites to the target.
hey guys,
how to make the arrow move only on the curved lane using mouse drag
i think the example before to hard how about this.
this is still same project
i just want to drag the arrow to blank circle
Sorry I mean like drag the mouse so this is an example
So I drag the blue object with the mouse to point B and the blue object only can follows a curved line.
if i use drag and drop i can drag it everywhere because i have a path for the object so the object can only drag in the existing path.
hey,
how to move objects along curved lines from a to b using mouse click objects?
Thanks, it really worked
hello
how do I make when I touch and hold the sprite it will make the frame animation work.
as an example
if i touch and hold sprite1 the animation frame will start 0,1,2,3
and when I release it will stop the frame animation and return to frame 0
Develop games in your browser. Powerful, performant & highly capable.
dropbox.com/s/x6bhe1qfsivob82/visible%20sprite.c3p
thank you very much it really worked
You could use a variable to toggle the on/off. You could use on button clicked : toggle boolean, where the boolean is an instance variable on the image object. Then you would have other conditions if object.boolean=true set visible, if object.boolean=false set invisible. Clicking the button then changes between true and false or visible/not visible.
can you make the code I am confused when I understand it. sorry because I'm learning to use construct
THANK!! it works
Member since 5 Feb, 2021