Two random suggestions

New releases and general discussions.

Post » Tue Nov 20, 2007 9:52 pm

First, the small, less exciting request:
When entering a color filter via expression rather than with the color picker, you get the RGB values all mashed together into one large number like so:



Would it be possible to split this up into three values separated by commas (i.e. 133,53,215 for R,G,B respectively)? It would make changing colors at runtime waaaayy easier to do. Also, if we could compare "Filter R," Filter G," and "Filter B" that would be useful too.

And my second, slightly more exciting idea:
I was thinking about ways to combine movements and it occurred to me that being able to activate and deactivate them would be rather useful.

Let's say you have a regular platformer. You're running around, jumping, shooting enemy soldiers, etc. Then a grenade goes off by your player:

[code:3dd6ioz6]
Condition:
player overlaps explosion.

Action:
Stop movement (player.Platform)
Resume movement (player.Physics)
[/code:3dd6ioz6]

Then you could ragdoll the hell out of him before returning control to normal.

So would it be possible to add the actions "Stop This Movement" and "Resume This Movement" to all the different Movement types?

And yeah, I know I keep piling on the suggestions. Sorry :oops:
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Nov 20, 2007 10:17 pm

[quote="deadeye":ijnu6kyg]First, the small, less exciting request:
When entering a color filter via expression rather than with the color picker, you get the RGB values all mashed together into one large number like so:



Would it be possible to split this up into three values separated by commas (i.e. 133,53,215 for R,G,B respectively)? It would make changing colors at runtime waaaayy easier to do. Also, if we could compare "Filter R," Filter G," and "Filter B" that would be useful too.
[/quote:ijnu6kyg]

Wait, you were able to input colour as expression :o? I didn't find any way for that and was going to suggest a way to input it as expression... So it's already there?
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Tue Nov 20, 2007 10:27 pm

For colours, the system expression RGB(r, g, b) makes a colour value, and GetRed(rgb), GetGreen(rgb) and GetBlue(rgb) can get the single values from a combined RGB. Ideally the IDE should use an RGB expression when you switch to 'Use expression'.

Also, all movements already have 'Set activated' which does what you want, doesn't it?

Edit: Drasa, right click the bar above it and pick Use Expression :)
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Tue Nov 20, 2007 10:47 pm

Oh, right click did the magic. But it surely doesn't look a right-clickable place :D. Maybe the UI for using expression should be done more intuitive?
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Tue Nov 20, 2007 10:59 pm

Ah, Platform movement has it but not Physics. I guess that's a todo for Physics then.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests