Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 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