[Behavior] moveto

Post your completed addons to share with the community

Post » Fri Oct 28, 2016 4:45 am

Update

rex_pushoutsolid behavior: add "Action:Push out toward position" to push out object from other solid objects, toward position. ( Sample capx )
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Sun Oct 30, 2016 6:18 pm

This plugin is incredible, but I was wondering if it is possible to be able to move the X position and the Y position separately. In the Construct 2 project below, I have two squares, the blue square that moves side to side, and the green Clown square that moves up and down at certain times. I've tried messing around with the events and actions, but the result doesn't work and the square either stops moving side to side or stops moving up and down. I basically want to make it so that the functions/actions in both the blue and green squares can be applied to 1 square. Is that possible, or not really?

Also just a minor thing, the action Set Current Speed doesn't work for me. Whether I set it to 0 or 400, the speed of the moving squares is the same.

https://www.dropbox.com/s/k7e02l9qib297yx/ClownMoveTo.capx?dl=0
B
6
S
1
Posts: 1
Reputation: 352

Post » Tue Nov 01, 2016 2:12 am

@ebaybrabs

This moveTo behavior only moves object to a specific position, it won't move x or y vector separately.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Tue Nov 01, 2016 2:42 am

i have this plugin since 2012, i cant believe how many things have now o.o

it is safe to rewrite it? cause my game uses it and i dont know if it may crash it if i change it...
Image

Image
B
38
S
14
G
7
Posts: 408
Reputation: 8,338

Post » Tue Nov 01, 2016 2:54 am

@IJCT

Yes, this behavior had modified and fixed bug before. It tested fine by this sample capx after exporting.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Wed Nov 09, 2016 8:44 am

ebaybrabs wrote:This plugin is incredible, but I was wondering if it is possible to be able to move the X position and the Y position separately. In the Construct 2 project below, I have two squares, the blue square that moves side to side, and the green Clown square that moves up and down at certain times. I've tried messing around with the events and actions, but the result doesn't work and the square either stops moving side to side or stops moving up and down. I basically want to make it so that the functions/actions in both the blue and green squares can be applied to 1 square. Is that possible, or not really?

Also just a minor thing, the action Set Current Speed doesn't work for me. Whether I set it to 0 or 400, the speed of the moving squares is the same.

https://www.dropbox.com/s/k7e02l9qib297yx/ClownMoveTo.capx?dl=0



You can do it by using this plugin as following:

Suppose that you have 2 sprites (Sprite1 and Sprite2) and you want to make sprite1 to move only horizontally to Sprite2 when press the left mouse button and you want to sprite to sprite2 vertically when pressing the right mouse button, you can use this code (2 Events):

Mouse -> Left button is Down -> Sprite1 -> MoveTo move to (Sprite2.X, Sprite1.Y)
Mouse -> Right button is Down -> Sprite1 -> MoveTo move to (Sprite1.X, Sprite2.Y)

That's it. ;)
B
55
S
18
G
5
Posts: 32
Reputation: 5,462

Post » Sun Dec 04, 2016 12:18 pm

HI Rex i just wana quick say , Thank you for all your awesome plugins are top class and is such a time saver for people like me that dont know the math or programing

I have a quick question, im using MoveTo and i been trying for a few weeks to make objec2 avoid
with a curve around the object1 while they are moving constantly i manage to do something similar but still not smooth enough do you thing is posible to make this movements? and if yes would you mind to show me an example will be really really helpfully
thanks a lot in advance

this is the capx: https://www.dropbox.com/s/bb6zxw068iykfrg/AvoidObjects%20%281%29.capx?dl=0
B
39
S
22
G
76
Posts: 285
Reputation: 42,186

Post » Mon Dec 05, 2016 4:07 am

@tarek2

Try to combine bullet behavior + set angle toward position (or turret behavior) to move object more smoothly.
B
108
S
26
G
271
Posts: 4,471
Reputation: 151,777

Post » Mon Dec 05, 2016 1:42 pm

rexrainbow wrote:@tarek2

Try to combine bullet behavior + set angle toward position (or turret behavior) to move object more smoothly.


@rexrainbow Thanks so much for the advice I tried the bullet behabior + set angle and some experimenting and i manage to do what i was after and is runing smoothly like you said :D MoveTo is still amazing though
B
39
S
22
G
76
Posts: 285
Reputation: 42,186

Post » Sun Jan 01, 2017 9:18 pm

@rexrainbow is it possible to make the movement appear as though it uses a lower framerate by only showing intermediate positions related to the animation speed in the move? If you see his motion here: https://youtu.be/WjvD3C_nvBk?t=172 he's only repositioned if his animation frame changes, which takes away some of the "glide" effect that smooth motion adventure games have. AGS had/has an "anti-glide" setting: http://www.adventuregamestudio.co.uk/wi ... oAnimation Is this something that can be done with moveto, presumably by using delta?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests