Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Ivanovich

#1
Yoy are right. I was declaring 'DynamicSprite *sprite' inside a function. Now I've moved the declaration to the top of the code and it works.

Thanks a lot!!   ;D
#2
I'm having a trouble trying to make a custom load/save GUI with thumbnails previews. When I try to load the thumbnail preview in a 'button', the code simply not work. The code is as follow:

Code: ags

DynamicSprite *sprite = DynamicSprite.CreateFromSaveGame(30, 50, 50);
MyButton.NormalGraphic = sprite.Graphic;


I'm sure slot '30' have an image to load (because I can load it with other templates).
Also if I replace the 2nd line of code for the next one:

Code: ags

MyButton.NormalGraphic = 10; // LOAD CURSOR SPRITE


Then the code works perfectly, and the button shows de '10' sprite image. The game resolution setting is 640x480, 16bits.

I'm confused about what is happening. Maybe the 'savescreenshots in save games' option uses 320x200 resolution ? I really don't know what is wrong.  ???

Thanks in advance for your help.
SMF spam blocked by CleanTalk