Physics objects gravity towards point?

Get help using Construct 2

Post » Thu Sep 26, 2013 1:55 pm

In short, I'm trying to make a rotating platformer with physics objects without using force action to push them to the center, or simulate physics with force and/or other actions, but I assume I would need to set the gravity to zero.

Here's a picture, (I don't have a capx file since I haven't even come close to achieving anything working how I want)




My other question is about implementing the cone of view or field of vision, like the one in Monaco or Teleglitch. Do I have to work it up from simple Line of Sight behaviour? tuaarita2013-09-26 15:05:31
B
5
S
1
Posts: 20
Reputation: 446

Post » Thu Sep 26, 2013 4:13 pm

set planet solid
make player to platform

Event: Set Platform angle of gravity to ange(Player.X, Player.Y, Planet.X, Planet.Y) degrees
Set angle of Player to Player.GravityAngle - 90 degrees

Nearly the same thing you can do for this block or whatever this black things are :D
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Thu Sep 26, 2013 4:23 pm

If I do that and set the blocks to a platform behaviour, how do I make them inanimate so they don't move along with the Player controls?

Edit: Ah okay, there was the Default Controls Yes/No in Platform behaviour settings, this should work now. Thanks!

Now theres only the field of vision problem. tuaarita2013-09-26 16:28:58
B
5
S
1
Posts: 20
Reputation: 446

Post » Thu Sep 26, 2013 4:31 pm

If you descripe that one a bit more I will help you ;)
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Thu Sep 26, 2013 4:47 pm

In short objects would block the players vision with opaque or solid color.

B
5
S
1
Posts: 20
Reputation: 446

Post » Thu Sep 26, 2013 4:58 pm

Anythere in the forum is a perfect example for that, I will search it.

Found It: Tutorial

There were also an .capx but cant find it, hope this tutorial is enough for you ;)Darklinki2013-09-26 17:02:01
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Thu Sep 26, 2013 5:33 pm

But I'm not trying to do enemy AI line of sight, just the shadows which the tutorial doesn't seem to cover. tuaarita2013-09-26 17:35:15
B
5
S
1
Posts: 20
Reputation: 446

Post » Thu Sep 26, 2013 5:37 pm

This is nearly the same, just think about it.
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Thu Sep 26, 2013 5:53 pm

Would I just need another layer of black tiles on top of the regular tiles that would change opacity if the player has line of sight to them? But is it possible to do it any other way? Like in the screenshot it's a straight line that moves perfectly with the player, they're not just blocks.
Although I guess I could make the "shadow" blocks smaller and smaller, but thats more resource intensive isn't it?
B
5
S
1
Posts: 20
Reputation: 446

Post » Sat Sep 28, 2013 2:10 pm

Can someone tell me whats happening?
I have the blocks gravity angle set towards the block in the middle

Why do they take off?tuaarita2013-09-28 14:13:45
B
5
S
1
Posts: 20
Reputation: 446

Next

Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 30 guests