Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, Ayumi, 1 invisible), 877 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | chip programmers | 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