Movement with accel and decel without behaviors or like so?

Get help using Construct 2

Post » Mon Apr 03, 2017 7:14 pm

I need an object to be controlled by WASD, with acceleration and decceleration.

It will be "flying" by the level, and it can't collide with anything (most things in the level have the solid behavior), BUT, it need to register overlap.

So... as the level is solid, I can't just use the 8direction behavior, cause the object will collide with things. And if I just turn off the collisions for the object, I will lose the overlap data that I need.

I tried to use the physics behavior in the object, but the gravity controller is global, and I have other things with physics in the level, that would not work properly with gravity 0...

How can I work this out?
B
20
S
4
Posts: 387
Reputation: 2,274

Post » Mon Apr 03, 2017 8:10 pm

Some advice to get you started:
You can't really easily make an object move easily without behaviors. Sure, there's 'move by pixels' but that's buggy as it tends to ignore by not accounting for solid collisions.

You'll want to probably utilize the Custom Movement behavior. Be sure to look up tutorials and reference the manual thoroughly when you're not sure how an action/condition with it works for how the behavior functions.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

Post » Mon Apr 03, 2017 9:03 pm

This replicates the 8 direction behavior with events except solids won't affect it.
https://www.dropbox.com/s/0jfbslxhy9ded ... .capx?dl=0

The custom movement behavior would add little other than handling the actual motion and max speed clamping.
B
94
S
33
G
114
Posts: 5,359
Reputation: 73,779

Post » Mon Apr 03, 2017 11:06 pm

R0J0hound wrote:This replicates the 8 direction behavior with events except solids won't affect it.
https://www.dropbox.com/s/0jfbslxhy9ded ... .capx?dl=0

The custom movement behavior would add little other than handling the actual motion and max speed clamping.

Thanks guys!
And R0j0, you're the lord of c2! haha seriously, thank you very much.
B
20
S
4
Posts: 387
Reputation: 2,274


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests