Show a picture!!!

Started by Mehrdad, Thu 27/08/2009 15:33:34

Previous topic - Next topic

Mehrdad

Is it possible show a picture without use a room?like show a newspaper.(with any format:.png-.jpg-.bmp.....).is any code for that?
My official site: http://www.pershaland.com/

Khris

Load the picture into a DynamicSprite, then use it as a GUI background and display it.

Mehrdad

Thanks a lot.I think is very easy for CJ  add a code for show image.
My official site: http://www.pershaland.com/

Dualnames

You can use a GUI, you can use a non needed room, you can use an overlay, you can use a character, you can use an object to do that, no bloody need to.

Overlay*ForTheLoveOfGod;
ForTheLoveOfGod=Overlay.CreateGraphical(0,0,spriteyouwanttoshowhere);
Wait(100000000);
ForTheLoveOfGod.Remove();
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

monkey0506

Quote from: Dualnames on Thu 27/08/2009 16:03:51ForTheLoveOfGod.Remove();

Hehe. :D

MEHRDAD CJ doesn't need to add any code for you to be able to show an image. Even if CJ scripted a function to do that, you would still have to put the call to that function in the script yourself. So essentially what you're saying is that CJ needs to add a special method to the engine to perform an extremely limited (and not strictly speaking that commonly used) action that could be easily done yourself in two seconds.

As Dual said, there are a ton of ways that you can present this image to the end-user already. Look up the DynamicSprite and Overlay functions, look up GUI.BackgroundGraphic, look up SetBackgroundFrame, etc. There's no need for a function specifically for this purpose.

Mehrdad

Quote from: monkey_05_06 on Thu 27/08/2009 20:15:18

Hehe. :D

MEHRDAD CJ doesn't need to add any code for you to be able to show an image. Even if CJ scripted a function to do that, you would still have to put the call to that function in the script yourself. So essentially what you're saying is that CJ needs to add a special method to the engine to perform an extremely limited (and not strictly speaking that commonly used) action that could be easily done yourself in two seconds.

As Dual said, there are a ton of ways that you can present this image to the end-user already. Look up the DynamicSprite and Overlay functions, look up GUI.BackgroundGraphic, look up SetBackgroundFrame, etc. There's no need for a function specifically for this purpose.

OK.OK.OK. Thats right. ;) Thanks: KhrisMUC - Dualnames & monkey_05_06
My official site: http://www.pershaland.com/

SMF spam blocked by CleanTalk