Jump to content
Sign in to follow this  
TheIcedRage

How Do You Add Images In Game?

Recommended Posts

To add custom images you define them as something known as cut resources, they are somewhat tricky to use. However, there's an easy way, just pinch the description.ext from some mission that uses custom images, change the pictures and fiddle with the values a little and that's it. If you want to know what you're actually doing I suggest this tutorial from ofpec.com:

http://www.ofpec.com/OFPResources/tutorials/cutrsc_tut1.zip

(note that the images must be jpg or paa and the dimesions 2^n as in 256x512, 512x512, 1024x256 etc)

Share this post


Link to post
Share on other sites

Still confused. Spent hours tweaking. But no clue to multiple and positionabl images with a set duration.

What's wrong with the below code?

class RscTitles

{

  class xNK

  {

     name = "xNK";

     duration = 4;

     idd = -1;

     movingEnable = false;

     text = "xNK.jpg";

     x = 0.17;

     y = 0.17;

     w = 0.2;

     h = 0.2;

  };

  class xSG

  {

     name = "xSG";

     duration = 4;

     idd = -1;

     movingEnable = false;

     text = "xSG.jpg";

     x = 0.17;

     y = 0.17;

     w = 0.2;

     h = 0.2;

  };

  class xWH

  {

     name = "xWH";

     duration = 4;

     idd = -1;

     movingEnable = false;

     text = "xWH.jpg";

     x = 0.17;

     y = 0.17;

     w = 0.2;

     h = 0.2;

  };

};

Share this post


Link to post
Share on other sites

I can't get the right combination...

I appreciate the tutorial link, it's helping understand it all, just still I'm without the key ..getting there..picking the lock hpefully soon...

and if anybody's got a paste of the proper code lemme know, you know.

Share this post


Link to post
Share on other sites

This should work:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class RscStdText

{

type=0;

idc=-1;

style=2;

colorBackground[]={0,0,0,0};

colorText[]={1,1,1,1};

font="TahomaB14";

size=1;

};

class RscTitles

{

titles[]={pic1,pic2,pic3};

class pic1

{

idd=-1;

movingEnable=0;

duration=2;

fadein=2;

fadeout=2;

name="intropic";

controls[]={"Pic"};

class Pic : RscStdText

{

style=48;

text="pic1.jpg";

x=0.25;

y=0.25;

w=0.5;

h=0.5;

};

};

class pic2

{

idd=-1;

movingEnable=0;

duration=2;

fadein=2;

fadeout=2;

name="intropic";

controls[]={"Pic"};

class Pic : RscStdText

{

style=48;

text="pic2.jpg";

x=0.25;

y=0.25;

w=0.5;

h=0.5;

};

};

class pic3

{

idd=-1;

movingEnable=0;

duration=2;

fadein=2;

fadeout=2;

name="intropic";

controls[]={"Pic"};

class Pic : RscStdText

{

style=48;

text="pic3.jpg";

x=0.25;

y=0.25;

w=0.5;

h=0.5;

};

};

};

Share this post


Link to post
Share on other sites

It works!

As usual Metal Heart, not so black hearted afterall...

thanks for the code!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×