how to make a 7 segment display?

Get help using Construct 2

Post » Sun Jun 17, 2012 3:19 pm

hi, someone know how to make a 7 segment display for visualize score?
thanks
B
10
S
2
G
3
Posts: 49
Reputation: 2,333

Post » Sun Jun 17, 2012 4:04 pm

Implementing a 7 segment display by segment would be a lot of work for very little benefit. I would suggest just building the 10 frames for each of the numbers and then indexing them by frame, for 0 to 9. You only need one action to change the digit. You also have the option of changing your 'font' easily in the future.
ImageImageImage
B
67
S
19
G
124
Posts: 3,219
Reputation: 74,425

Post » Sun Jun 17, 2012 4:32 pm

*delete* look at next post ;-pnaelian2012-06-17 20:00:24
B
16
S
5
G
3
Posts: 298
Reputation: 5,240

Post » Sun Jun 17, 2012 7:56 pm

I've found a very easy and cool way to do that using a special web font convert to the light "woff" format ... ;-p

No Google web font with this kind of "digital" effect (as supposed) but i've found a classic windows font (http://www.dafont.com/ds-digital.font)... after searching a little more i discover the "woff" font format (Web Open Font Format) which is very light and support by all recent browsers ... searching more again a free web tool to convert my font format to "woff" (http://www.fontsquirrel.com/fontface/generator), this tool also create a stylesheet to use it ... so my only real work was removing some unused data in the stylesheet ! (10 seconds).

So now i use C2 import files feature to bring access to this stylesheet and the digital font ... the last thing is just to use "set web font" on the text object and ...

... a cool digital web font is in your project and working "everywhere" ! ;-p ... I share the project capx Here (with the digital font) for testing and use it in your own projects* ... thanks to report bugs if so ;-p

If you just want to test the result it's Here ...

Test working on pc all browsers and safari ios 5.1.1 ... the arial standard font is replace by the digital one by local url so it could take sometimes 2 seconds to the new font to be loaded (will be fixed in next release).

I discover now all this is explained in a scirra tutorial ;-p ... so the only thing interesting here is the use of the "import feature" which make your font embelled in your project.

* this font is a shareware font please contact author if selling a project using it (DS-Digital by Dusit Supasawat)

ENjoy !naelian2012-06-17 21:00:06
B
16
S
5
G
3
Posts: 298
Reputation: 5,240

Post » Sun Jun 17, 2012 9:10 pm

thank you. so in the projec the .woff file is necessary? can i use only css file?
thank you
B
10
S
2
G
3
Posts: 49
Reputation: 2,333

Post » Sun Jun 17, 2012 9:47 pm

no you need the 2 files to make it work.
B
16
S
5
G
3
Posts: 298
Reputation: 5,240

Post » Mon Jun 18, 2012 7:35 am

ok, thank you. i'm new thank's for the suggest and sorry for my english.
have you got any ideas for a wheel effect? i'd like to make a set of card reels like a slot machine.
thank's and sorry for the "out of topic"
B
10
S
2
G
3
Posts: 49
Reputation: 2,333

Post » Mon Jun 18, 2012 11:35 am

don't forget to add @naelian to your post ... thanks ;-p

ok i will change my capx to do this and not simply add 1 ;-p
B
16
S
5
G
3
Posts: 298
Reputation: 5,240

Post » Mon Jun 18, 2012 11:47 am

@naelian thank you
B
10
S
2
G
3
Posts: 49
Reputation: 2,333

Post » Mon Jun 18, 2012 2:18 pm

@puoidirloatutti ... sorry man i think i've not understand well what you want !

If you want to create a real wheel moving effect on something which is not "numbers" (simulating something fully mechanical) my work will not solve your problem and i suggested you searching "jackpot" (or something like that) in forum because i have already seen demo like that here ... the best is probably to create a new post for this new question too !

I think this wheel is not very difficult to do but required a lot of time to be done (very high sprite or tiledbackground to simulate a "column" of objects and then a system to make it move with different speed on y axis.

I'm working on the capx but to simulate and game generating a random "number" effect used in some old electronical games so it's not (i think) the same objective ;-(naelian2012-06-18 14:44:51
B
16
S
5
G
3
Posts: 298
Reputation: 5,240

Next

Return to How do I....?

Who is online

Users browsing this forum: newt and 27 guests