ID:175425
 
I want to create a battle system where the game switches to a different screen for the battles, and shows pictures of you and the monster.

I can probably get around the coding myself, but how do I import a picture into my environment for use (short of pasting it into multiple icons)?

Also, some simple battle animation might be nice. How far can I take this? Not at all? maybe moving/resizing of the pictures? And a simple other picture that is pasted over the battle area for a second, and is then removed?

You don't need to explain all the battle animation stuff to me, I'd just like to know how much of it is at all POSSIBLE.
Xylpher wrote:
I can probably get around the coding myself, but how do I import a picture into my environment for use (short of pasting it into multiple icons)?

I do this for for my animations, breaking a larger picture up into 32x32 tiles. Not the easiest thing to do mind you.
The best way to go about this is just to import a pic like this:

obj/yourpic
icon = 'pic.gif'

or

icon = 'pic.png'

or

icon = 'pic.jpg'

The way this maps is it chooses a corner tile and positions the rest of the pic accordingly. Something to remember about the size of the pics is to keep them at multiples of 32. (Example: 32x32, 64x64, 128x128..etc)

Also if you have the software to save them as PNG I recommend this format as it works best with BYOND and also has a transparency channel.

Hope this helps.
LJR
In response to LordJR
Actually, only .dmi, .png, and .bmp work like that. .jpg, and .gif don't.
In response to LordJR
Yes, this is exactly what I meant.

Do the sizes HAVE to be multiples of 32? Can't it just fill the remaining part with transparent? I have a load of pictures (in png) ready, but they're not in multiples of 32.

I'm going for a simple system with a black or white background, so exactly what the void from the picture will be filled with doesn't matter.
In response to Xylpher
Xylpher wrote:
Yes, this is exactly what I meant.
I'm going for a simple system with a black or white background, so exactly what the void from the picture will be filled with doesn't matter.

Well thats dependant on your software.. Paint Shop Pro has a Color Opt. at the top of the menu. If you click on that and scroll down to Choose image transparency, you can select hot pink if you like. Just whatever color you choose as your mask.

LJR
In response to LordJR
I'm not talking about the transparent part, I'm not worried about that.

I'm talking about, if I put in a 56x180 size picture, will it:

A) Not work
B) Fill the remaining part with another color/transparency
In response to Xylpher
Not sure.. try it and see how it comes out.
I've posted how to use png files.

LJR