[Behavior] moveto

Post your completed addons to share with the community

Post » Sun Feb 12, 2017 10:38 pm

Hello Rex,
I can't get your moveTo plugin to load. I get the error:
Unable to load plugin:
Found "GetPluginSettings" global, but it is not a function.

This plugin will not be available in the editor.


Thoughts? I have a number of your plugins installed, but this is the one causing me issues.
B
7
S
4
G
1
Posts: 4
Reputation: 1,133

Post » Mon Feb 13, 2017 7:05 am

@myer0244

Puts this moveTo behavior on folder "behaviors" (not "plugins"), or uses this tool to download and install my plugins in a few clicks.
B
109
S
27
G
276
Posts: 4,479
Reputation: 154,418

Post » Mon Feb 13, 2017 10:59 am

Hi @rexrainbow

is there a way to add a condition or trigger "Is about to hit/reach target"?
So maybe if the platformer has reached about 90% of the total way to set this condition true or trigger it?
The problem is if the player has high speed (and acceleration), it doesn't stop exactly on the target position.

So if target is x = 480 and the player is fast, he will stop on about 490px.
With that trigger I can reduce speed before he hits the target.

This is the game:
https://www.scirra.com/arcade/other-gam ... tale-15112

Or do you know another solution?

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
102
S
37
G
31
Posts: 1,162
Reputation: 28,869

Post » Mon Feb 13, 2017 11:20 am

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Feb 13, 2017 3:09 pm

99Instances2Go wrote:@AndreasR

Can do:

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


That's brilliant! Thank you!
Image Image iTunes: Match3 | Google Play: Match3
B
102
S
37
G
31
Posts: 1,162
Reputation: 28,869

Post » Tue Mar 28, 2017 4:08 pm

I just have to say thank you for this amazing behavior for C2 - it's really easy to work with and takes away a lot hard work and headaches. It should be a standard Construct behavior item. I hope it will be compatible with C3!
B
21
S
5
G
1
Posts: 23
Reputation: 1,740

Post » Tue Mar 28, 2017 4:25 pm

I hope so too! (even more as most of my projects won't open in C3 without an update ^^')
Thanks a lot for your hard work @rexrainbow !
B
32
S
6
G
1
Posts: 353
Reputation: 2,821

Post » Tue Mar 28, 2017 10:57 pm

Hi rex, love the behavior!

I was curious, is it possible to set the "Remaining Distance" to a variable?
I'm trying to make an event with objects using Moveto, and on collision I want to check how fast the object was going on collision.

Thus creating a sort of pseudo physics event.

Thank you! and if there is a better way to achieve my goal, let me know!
B
15
S
8
G
2
Posts: 5
Reputation: 2,337

Post » Wed Mar 29, 2017 3:15 am

@dingalingboy

This behavior could get speed of latest tick.
B
109
S
27
G
276
Posts: 4,479
Reputation: 154,418

Post » Thu Mar 30, 2017 2:53 pm

You are an angel, thank you rex!
B
15
S
8
G
2
Posts: 5
Reputation: 2,337

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests