Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 5,207 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with codes #299261
11/22/09 15:55
11/22/09 15:55
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
Following the manual I am applying these codes but I am not getting any results.

Code:
BMAP* image1 = "image1.pcx";

if (case)
{pan_setbmap(panel_image,1,1,image1);} //change image

MATERIAL* skin1 = "skin1.tga";

if (case)
{ent_mtlset(my,skin1,1);} //change material



Should these codes not work?

Re: Problem with codes [Re: JGGamer] #299325
11/23/09 03:18
11/23/09 03:18
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
MATERIAL definition controls the "lighting" properties of an entity or surface. u cant assign an image to that. usually the definition of material is the ambience, specular and diffuse lighting properties. see manual for MATERIAL definition.

instead you try this (not tested):

Code:
BMAP* bmpskin1 = "skin1.tga";

MATERIAL* mtlskin1 =
{
 skin1 = bmpskin1;
 ...
 ...

}

if (case)
{ent_mtlset(my,skin1,1);}



u can replace the "..." with other lighting properties.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: Problem with codes [Re: delinkx] #299438
11/24/09 01:36
11/24/09 01:36
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
Thanks, I'll try. Is the panel code correct?

Re: Problem with codes [Re: JGGamer] #299441
11/24/09 02:25
11/24/09 02:25
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
yes thats good.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: Problem with codes [Re: delinkx] #299577
11/25/09 03:26
11/25/09 03:26
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
Well I don't understand why it doesn't change.
By the way, I haven't tried your code yet. I will tomorrow. I just have a few minutes right now. Thanks


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1