First Symbos Application

Página 10/47
3 | 4 | 5 | 6 | 7 | 8 | 9 | | 11 | 12 | 13 | 14 | 15

Por edoz

Prophet (2465)

imagem de edoz

16-01-2014, 17:28

Trebmint2 wrote:

Hi Edoz, can I ask why the counters are chunky. It saves no memory to have them double width pixels... draw them large and shrink them down rather than the other way around.

What do you mean exactly ? The pictures I used are 32x32 in symbos.
I use a icon editor (also 32x32 with 16 colors) I saved the pictures as PNG , load them in the sheet and set the resolution to 32x32 on the sheet config ... Is this not the best way to do it ? I saw the pixels are a bit different in symbos.. but this has something to do with the conversion ?

Por edoz

Prophet (2465)

imagem de edoz

16-01-2014, 17:52

I get it! You have to take a higher resolution to get it better in symbos. I now created 128x128 and used 32x32 in symbos.

It's nicer to real colors not ? What is your opinion ?

Por Prodatron

Paragon (1836)

imagem de Prodatron

16-01-2014, 18:00

Looks much better! Maybe you keep the white ones like this and take the three-dimensional versions for the red and green ones?

Por Trebmint2

Master (242)

imagem de Trebmint2

16-01-2014, 18:15

That looks much nicer. The reason is that symstudio has to be able to take pretty much all graphics and it converts them into the available colours and at the size requested.

What you're actually doing on that screen because the mode you're displaying it in is 1:2 - meaning that the pixels arent square but 2 pixels wide equals the same as 1 pixel down, which is why the fonts look tall but narrow.

Thats means the circles you're displaying are actually drawn 64 wide and 32 high, but appear correct because you're in 1:2 mode. This means that when you sample the graphics in symstudio 64 width = 32 bytes (cos 16 colours * 2 = 1 byte), 32 high = 32 high.... so 32x32 but displayed as 64x32. Confused I am now!

Por edoz

Prophet (2465)

imagem de edoz

16-01-2014, 18:33

Thanks! .. this makes a bit more sense ! .. so I have to convert the picture for every screen mode ? To get the 1:1 looks the same ? In this case I used 256x212 ... as you can see it is not round anymore..

Other question. How can I enable a timer and set the time value in the code ?

Por Trebmint2

Master (242)

imagem de Trebmint2

16-01-2014, 18:49

TBH Prodatron hasnt bothered with screen mode widths being different so I doubt people will mind if you keep it so

As for timers... This is how it should work. There's a chance I broke this code during the last part of development. try it and see

In theory, you just click on the timer icon and then drop it on a form. The timer will appear on the form in symstudio but it wont in symbos. Then on the timer property panel under the control panel tick the Timer Enabled and set the Timer Event to a value 50 = 1 second. The timers can occur every 50th of a second so 25 = 1/2 second, 50 = 1 second, 100 = 2 seconds, 500 = 10 seconds etc. Then Click the create Code Button and that will give you a Function for that timer.... basically that function will be called every.

eg.
FUNCTION Timer1_Event
second = second + 1
If second > 59 Then
minute = minute + 1
second = 0
EndIf
EndF

Por edoz

Prophet (2465)

imagem de edoz

16-01-2014, 20:20

Thanks again, but I already found that out. In my case I was wondering if I can enable or disable a time in runtime.
in visual basic you can use:

timer1.enabled =true
timer1.enabled = false
timer1.interval = 500

Por edoz

Prophet (2465)

imagem de edoz

16-01-2014, 21:58

I updated the EXE file with the last version.

DOWNLOAD

It works good but I have some problems restarting a new game. I think It is related to the timer event that's handles my game. (Don't forget to use the right mouse button to drop one)

Por edoz

Prophet (2465)

imagem de edoz

16-01-2014, 22:30

Bdw: I was already thinking about the next application to improve my skills...Do you think Tetris would be possible with the current symstudio release. I was thinking to create a grid full with small paintboxes, or imageboxes that you can give a color ..etc.

Por edoz

Prophet (2465)

imagem de edoz

16-01-2014, 22:35

About the timer problem. It seems that a messages box is disabling the timer

Página 10/47
3 | 4 | 5 | 6 | 7 | 8 | 9 | | 11 | 12 | 13 | 14 | 15