Gamestudio Links
Zorro Links
Newest Posts
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
ZorroGPT
by TipmyPip. 07/31/26 22:56
Wolfram Mathematica with Zorro
by TipmyPip. 07/30/26 02:07
What are you working on?
by rayp. 07/24/26 22:58
Z9 getting Error 058
by madpower2000. 07/22/26 14:01
New Zorro version 3.11
by jcl. 07/21/26 13:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 2,100 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 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