ballistica icon indicating copy to clipboard operation
ballistica copied to clipboard

2D Mode (1.4.146)

Open Dymkar opened this issue 2 years ago • 8 comments

Hey all, when I made a map for BombSquad, i wanted to make something like Happy Thoughts, but without flying. Any help?

Dymkar avatar Aug 28 '22 16:08 Dymkar

Hey, if you take a look at Happy Thoughts source code under bastd/maps.py, you'll find part where it's setting up globals node: https://github.com/efroemling/ballistica/blob/2ddb0d6eb419aa779d4a27690e23c09a83746732/assets/src/ba_data/python/bastd/maps.py#L1235-L1243 So you should set this happy_thoughts_mode attribute (and probably self.is_flying too, but it seems like it is not used anywhere, probably just an easier way to determine is it flying map or not).

(This happy_thoughts_mode attribute is used later in bastd/actor/spaz.py, which finally makes spaz node fly. :partying_face: ) https://github.com/efroemling/ballistica/blob/2ddb0d6eb419aa779d4a27690e23c09a83746732/assets/src/ba_data/python/bastd/actor/spaz.py#L98

And if you want to remove this flying behaviour from your map, you should set gnode.happy_thoughts_mode to False.

Dliwk avatar Aug 28 '22 17:08 Dliwk

I want to leave happy thoughts bounds and delete his flying.

Dymkar avatar Aug 30 '22 08:08 Dymkar

@Dymkar Hello, has your question been answered?

JoseANG3L avatar Sep 06 '22 20:09 JoseANG3L

@Dymkar Hello, has your question been answered?

No

Dymkar avatar Sep 07 '22 07:09 Dymkar

I want to leave happy thoughts bounds and delete his flying.

I waiting answer for this.

Dymkar avatar Sep 07 '22 07:09 Dymkar

And if you want to remove this flying behaviour from your map, you should set gnode.happy_thoughts_mode to False.

Did you try this?

Dliwk avatar Sep 07 '22 16:09 Dliwk

And if you want to remove this flying behaviour from your map, you should set gnode.happy_thoughts_mode to False.

Did you try this? Yes, but bounds has been deleted. I just want to leave area of interesing bounds.

Dymkar avatar Sep 10 '22 15:09 Dymkar

Can't you do something like gnode.canfly = False and disconnect can_fly from the PlayerSpaz after gnode.happy_thoughts_mode sets self.fly? I think that should keep the bounds but disallow the player from flying

EraOSBeta avatar Jan 13 '23 18:01 EraOSBeta