Tilted save/load screenshots

Started by DiegoHolt, Yesterday at 20:41:37

Previous topic - Next topic

DiegoHolt

Hi! :-D  Is there a way of making the images of the load/save screen tilted?

https://imgur.com/a/GHEnbBT



The image is a example of what I'm trying to achieve. As you can see, I need it to be like a photo album or something like that. Avoiding perfect alignment.

As always, thank you for your time!

Snarky


DiegoHolt

Sorry, I don't know what went wrong...

Khris

It's fine, however you can insert the image directly into the post. Right-click the image after uploading it, then click on "Copy Image Link".

Now paste that link in between img tags:
Code: bb
[img]https://i.imgur.com/mTc9pwr.jpeg[/img]

Anyway, are you using a module or template that already does display screenshots of your savegames? Are the screenshots GUI buttons? Or hotspots?

DiegoHolt

Thank you, now I see the fail with the image posting...

As for the save/load I'm using the Tumbleweed template.

Snarky

Quote from: DiegoHolt on Yesterday at 20:41:37Hi! :-D  Is there a way of making the images of the load/save screen tilted?

So, the answer is yeah, with some caveats.

To load the screenshots in the first place, you would use DynamicSprite.CreateFromSaveGame(), creating one DynamicSprite for each slot.

If you're using AGS 3.x, you would then use DynamicSprite.Rotate(). However, you can only rotate by an integer number of degrees, so if you have a particular template they need to fit (like your sample image), that may not work precisely. The positioning may be a bit fiddly, and if you need click detection to follow the outline of the images, that's also something you'll need to do manually.

In AGS 4.0, most graphical elements have a .Rotation property, so you would be able to put the DynamicSprites on Buttons (for example) and rotate those directly. The property is in floats so you can set it precisely, and the click detection will work correctly.

SMF spam blocked by CleanTalk