Object.Platform.GravityAngle

Discussion and feedback on Construct 2

Post » Sat Nov 24, 2012 7:31 pm

Hi :),

I was just wondering if it's just me or there isn't an expression to retrieve the current gravity's angle?

This is not a complaint nor anything like that. I just want to be sure if I'm the only one missing this expression :).
B
9
S
2
G
3
Posts: 10
Reputation: 2,725

Post » Sat Nov 24, 2012 10:14 pm

I don't think there is such an expression (@Ashley ?).
Last time I used it I kept the value in an instance variable.

This possibly could have a spot in the todo list
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 » Sat Nov 24, 2012 10:24 pm

Happy to help :).
B
9
S
2
G
3
Posts: 10
Reputation: 2,725

Post » Sat Nov 24, 2012 11:47 pm

Maybe you could use some non-behavior gravity ( Forces ? )
You could retrieve the gravity angle easily !
+ You could change the gravity ...
Can't change the gravity angle right now ...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Sun Nov 25, 2012 5:38 am

Well, it's no that I can't use a variable myself, it's just that there's no expression to retrieve the current angle. I think you didn't understand what I meant :).

And you do can change the gravity angle within the platform behavior.
B
9
S
2
G
3
Posts: 10
Reputation: 2,725

Post » Sun Nov 25, 2012 3:03 pm

I think it is by default 0 ...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Sun Nov 25, 2012 3:25 pm

Yeah, I just use an object instance variable, then set the gravity angle from this variable every tick.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Nov 25, 2012 4:09 pm

Guys, it seems you don't understand the topic here. There's no problem in having a "custom" variable to set the angle (and later retrieve it). The reason for this topic is that there's an action within the platform behavior called "set angle of gravity". However there's no expression like "object.platform.gravityangle" to "natively" retrieve the value of the angle. In other cases, for every value (it seems) there's an expression to retrieve it.

I hope it's more clear now.
B
9
S
2
G
3
Posts: 10
Reputation: 2,725

Post » Mon Nov 26, 2012 1:58 am

Nope ...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests