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, 7th_zorro), 877 guests, and 3 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
making panel an entity #318078
04/04/10 20:56
04/04/10 20:56
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
I'm messing with a card game idea.
Is it possible to make a panel (the card), an entity that can have the attributes of layer, pos_x, and pos_y, that can be controlled by a function that would place it on top of, or beside, other cards?

I could make the cards models, but I'd like to use panels if it is possible.

And Happy Easter everyone!

Last edited by JazzDude; 04/04/10 20:56.
Re: making panel an entity [Re: JazzDude] #318080
04/04/10 21:02
04/04/10 21:02
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
In Lite-C you could make a struct for this.
In c-script, maybe, I would load an empty level and create 'empty' entities, each with 'access' to a certain panel. I guess that's the easiest way, when you are used to think in the structure of the engine's entities, anyway.

Re: making panel an entity [Re: Pappenheimer] #318084
04/04/10 21:26
04/04/10 21:26
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
I could probably do this in Flash with less trouble.

Re: making panel an entity [Re: JazzDude] #318096
04/05/10 06:50
04/05/10 06:50
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Here is some LITE_C code Ive been working on recently.
Its not exact to what you want, but I'll take another look at it tonite.
To make it c-script friendly and give you more control over it...

[quote]
Code:
...
	ENTITY* panel_entity = ent_create("panel1.mdl",  NULL, NULL);
	test_pan.target_map=bmap_createblack(test_pan.size_x, test_pan.size_y, 32);
	ent_setskin(panel_entity, test_pan.target_map, 1);
...

this plants the panel output onto the skin of a model, provided I give it a double-sided-mapping model.
[quote]


[EDIT] Sorry guys, but my code revolves around "target_map", and that doesnt appear available in c-script.



Last edited by EvilSOB; 04/05/10 16:02.

"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: making panel an entity [Re: EvilSOB] #318146
04/05/10 15:12
04/05/10 15:12
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
Thanks for the useful suggestions.

Re: making panel an entity [Re: JazzDude] #318167
04/05/10 17:53
04/05/10 17:53
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
I know you dont want to use models for this but...
you can try this:

Code:
entity Ace_of_spades
{
	type = <space_ace.mdl>;
	layer = 36;
	view = camera;// Important
	x = 50; 
	y = 10;
	z = 10; 
}




panels are much like entities. so within your code, you would simply use:

ace_of_spade_pan.layer = 36; /// FOR EXAMPLE

to bring it to the front, if there are cards behind it.



------------------------------

Not exactly sure what your trying to do, exactly; But I just wanted to try and help tongue


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: making panel an entity [Re: DLively] #318206
04/05/10 22:17
04/05/10 22:17
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
Thanks, Devon...I had considered that approach but I was trying to avoid using models.

Re: making panel an entity [Re: JazzDude] #318213
04/06/10 00:18
04/06/10 00:18
Joined: Apr 2010
Posts: 38
D
deianthropus Offline
Newbie
deianthropus  Offline
Newbie
D

Joined: Apr 2010
Posts: 38
Had you considered using sprites instead?

Re: making panel an entity [Re: deianthropus] #318592
04/08/10 16:29
04/08/10 16:29
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
Yes, but not seriously. I may play with that approach a bit. See where it leads.

Thanks.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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