Trouble with custom movement

Get help using Construct 2

Post » Thu Dec 22, 2011 12:39 pm

Been playing around with the custom movement on C2 and I'm stuck.
I tried this....
Sprite on custom movement.
Sys - On start of layout - accelerate sprite towards... or even just accelerate...
Nothing happens despite the stepping mode. Is this a bug or not implemented.
Also if I set a horizontal speed (sprite does move) then try push up out of solid - again no joy.
Any ideas?
B
12
S
2
G
5
Posts: 20
Reputation: 4,032

Post » Thu Dec 22, 2011 12:46 pm

If you want your sprite to move, you should put the accelerate action in an "every tick" condition, not just "on start of layout".

"On start" only happens once, at the beginning of startup.

For pushing object, check the "how do I FAQ" there are examples of it there. The example use the platform behavior, but the logic is the same for the custom movement behavior.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Dec 22, 2011 1:03 pm

Aslo tried push up out of solid after collision... nothing.
But oddly if I move the sprite forward manually in 1px steps (not set speed on custom movement) the push up out of solid works.. hmmmm
B
12
S
2
G
5
Posts: 20
Reputation: 4,032

Post » Thu Dec 22, 2011 1:04 pm

Ah yes - every tick accelerate works - thanks. I'll have a bit more of a play
B
12
S
2
G
5
Posts: 20
Reputation: 4,032

Post » Wed Sep 25, 2013 4:30 pm

[QUOTE=Kyatric] check the "how do I FAQ" there are examples of it there. The example use the platform behavior, but the logic is the same for the custom movement behavior.[/QUOTE]

wow, just found this FAQ... VERY useful.. thanks!
B
54
S
13
G
7
Posts: 930
Reputation: 8,482


Return to How do I....?

Who is online

Users browsing this forum: farfetchd83, makkancs and 25 guests