How do I move an object to a x,y position?

Get help using Construct 2

Post » Fri Nov 04, 2016 3:50 pm

Hi

How can I move an object to a position (it would be better to set moving speed)?
I found rexmove plugin but I think it was too old and construct2 showed me error.
B
8
S
2
Posts: 16
Reputation: 530

Post » Fri Nov 04, 2016 4:08 pm

It depends on what type of movement you want. You can either use the bullet behavior or the custom movement behavior.
B
124
S
43
G
41
Posts: 849
Reputation: 28,235

Post » Fri Nov 04, 2016 6:55 pm

Or if you simply wanna move something to somewhere over time, use lerp.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Fri Nov 04, 2016 10:21 pm

Pathfinding for a Platformer maybe?
Or do you mean a dash or something like that?

With this little information nobody can really help you with your problem..
B
13
S
2
Posts: 80
Reputation: 821

Post » Sat Nov 05, 2016 1:31 am

pathfinding, platformer, bullet, custom behavior, lerp or move to plugin... or maybe set position :) put more details in to your problem. More power!!!!
B
79
S
31
G
7
Posts: 148
Reputation: 9,179

Post » Sat Nov 05, 2016 5:23 am

andreyin wrote:It depends on what type of movement you want. You can either use the bullet behavior or the custom movement behavior.


I'm developing card game and I want to move a card for example from left side of table to the right.
I want to set speed+position and card move to that position.
B
8
S
2
Posts: 16
Reputation: 530

Post » Sat Nov 05, 2016 5:24 am

clarkkentnicdao wrote:pathfinding, platformer, bullet, custom behavior, lerp or move to plugin... or maybe set position :) put more details in to your problem. More power!!!!


I'm developing card game and I want to move a card for example from left side of table to the right.
I want to set speed+position and card move to that position.
B
8
S
2
Posts: 16
Reputation: 530

Post » Sat Nov 05, 2016 5:25 am

13spongg13 wrote:Pathfinding for a Platformer maybe?
Or do you mean a dash or something like that?

With this little information nobody can really help you with your problem..


sorry for incomplete information
I'm developing card game and I want to move a card for example from left side of table to the right.
I want to set speed+position and card move to that position.
B
8
S
2
Posts: 16
Reputation: 530

Post » Sat Nov 05, 2016 6:29 am

Thank you my friends, I am new to construct2. it was my mistake, I copied rex_moveto to plugin folder instead of behaviors folder
B
8
S
2
Posts: 16
Reputation: 530

Post » Sat Nov 05, 2016 10:57 am

I don't know if it's possible with cards also, but couldn't you make a pathfinding behavior and when you click on the card, it will find the path to an object of the left side? You could set the speed a bit higher to make it be smoother.

I'll try it.
B
13
S
2
Posts: 80
Reputation: 821

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests