[How do I]Frequently asked questions

Get help using Construct 2

Post » Wed Feb 26, 2014 12:18 pm

@jhice: Since that post the system expression "rgb(r,g,b)" has been added.
I don't feel it is really necessary to list this.

rgb(r, g, b)
Generate a single number containing a color in RGB format. This is useful for conditions or actions taking a color parameter.
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Wed Feb 26, 2014 12:25 pm

@Kyatic : see the other post. Probably we can change de title of the question, but IMHO this conversion is still useful if we want to use direct color value without using rgb() (or without the possibility to use it).

Here's an example why it is useful to know the color formula (where wsColor is a number value) :

Image
B
11
S
2
Posts: 69
Reputation: 819

Post » Thu Feb 27, 2014 4:12 am

@jhice: As you can see in the "inline help", it's expects a "rgb(r,g,b)" formulation as well that you can/should provide.
r, g, b are also expected number values that you can provide through the use of the "int()" keyword to cast the value to integer.
ie:
Code: Select all
rgb(int(tokenat(Websocket.MessageText,0,";"),int(tokenat(Websocket.MessageText,1,";"),int(tokenat(Websocket.MessageText,2,";"))


For now I can't edit the FAQ anyway (because of some quirks in the new forum).
As soon as I can, I guess I'll add it, but I'm still unsure this is really something required nor frequently asked (especially since it's PHP, so out of C2's scope).
It can still find its place in the "Misc questions" I guess.
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: 6,998
Reputation: 57,791

Post » Thu Feb 27, 2014 9:12 am

Thanks Kyatric.

I won't be sad if you don't post it, if you think it's not a "frequently" question (and you know it better than me) ;)
Just wanted to contribute to a problem I faced. Your solution is of course good in the scope of C2, but needs to manage 3 variables, what I wanted to avoid (lazyness ^^). Anyway, I found my answer searching the forum.
French developper based in La Rochelle/Tours
Machines I used to play or develop games : Amstrad, Atari, Amiga, PC, PS, Xbox, mobile
B
11
S
2
Posts: 69
Reputation: 819

Post » Tue Mar 04, 2014 12:59 am

mini map explample with relative positions
https://www.scirra.com/forum/viewtopic.php?f=147&t=97735
Carlo Andrei Mercado
Animator, illustrator, concept artist, special effects for games.
Level Plus Game Studio S.A.S
http://www.levelplusgames.com/
carlo.m@levelplusgames.com
http://f-fman.wix.com/portfolio-ffman22
http://ffman22.deviantart.com/

tutorials:

dynamic-mini-map originally published by ffman22
B
41
S
12
G
3
Posts: 310
Reputation: 4,633

Post » Sat Mar 08, 2014 1:53 pm

Thanks!
B
22
S
2
G
2
Posts: 61
Reputation: 1,329

Post » Thu Apr 03, 2014 4:40 pm

" Hide the mouse cursor " leads to forum index ;-;
B
14
S
2
Posts: 35
Reputation: 777

Post » Thu Apr 03, 2014 4:44 pm

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: 6,998
Reputation: 57,791

Post » Thu Apr 24, 2014 7:51 am

@Pasha187: Check your PMs and stop spamming/posting your question in this topic.
It is mentioned in the first post that this topic is not here for people to post their questions, and that's why your post get deleted, in case you're wondering...

Thanks.
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: 6,998
Reputation: 57,791

Post » Wed Apr 30, 2014 4:34 am

'Saving and loading an array to/from webstorage' Tutorial in the 'webstorage' section no longer has a valid URL in the forum post. The link to the topic works fine, just within the post itself.

Thanks for the list. Use it pretty much everyday.
B
7
S
1
Posts: 20
Reputation: 686

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Kagubro, Solomon and 33 guests