Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, degenerate_762), 1,430 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Again about Models.. #235886
11/10/08 19:21
11/10/08 19:21
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
Hiho..

I was asking here (click here smile ) about a door opened with an special code, and about buttons and stuff.. and the answers was fast and good! but not good enough for me smile

i searched around, and i found this (click me) and this is an example for a Game designed in GameStudio.. and there is a model used how i want to use mine for buttons.. u can click there on each "Symbols" and it does something..
as i know, the different the symbols are, the different the door opens there in this game..
the idea behind is the same!

now i ask myself, is this model with the symbols on it the same model, or are this symbols each one an model.. is is possible to do such a model in MED? or is there maybe another tool i can use to do it as "no-time-consuming" as possible smile
i thought about it, in code, it would be an array... can i do array-models?

hopefully u understand my question!

and i hope it isnt too bothering for you out there in the forum that i post the question again.. i really need help at this one.. thx a lot!

cheers, Flutschi


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: Again about Models.. [Re: flutschi] #235936
11/11/08 00:19
11/11/08 00:19
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
in a quick summary

make them models seperately,
create the door, save it
then create each button, and save those seperately to it's relevant position to the door

then create
action act_switch_door() in your code

place just the door model in wed and give it an action act_switch_door

and then these placed doors will spawn each additional button
Code:
#define door skill1
#define button1 skill1
#define button2 skill2
#define button_value skill2

//... etc...
action act_switch_door(){
	you = ent_create("button1.mdl", my.x, door_button);
	my.button1 = you;
	your.door = me;
	your.button_value = 1;

	you = ent_create("button2.mdl", my.x, door_button);
	my.button2 = you;
	your.door = me;
	your.button_value = 2;

//etc...
}


then use EVENT_CLICK or on_mouse_left = door_button
through this you will be able to find out now which door the switch is connected to, it's corresponding value and all it's other corresponding switches.

Hope this helps

Re: Again about Models.. [Re: MrGuest] #235996
11/11/08 11:47
11/11/08 11:47
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
Wow, this helps a lot..

when i understand this right, i have to model all the buttons in MED (or WED?) but dont have to place then in WED.. then i place them with the action-code? that sounds "easier" then i thought smile

what u mean with "and save those seperately to it's relevant position to the door"
u mean that in MED, i need to place them where they are after on the switch?
can't i calculate the position with the "ent_create("button1.mdl", my.x, door_button)" my.x coords? i'm more the calculater.. but as some reason u wrote this, so im wondering what is better? smile


this helps me a lot.. thx very much!


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: Again about Models.. [Re: flutschi] #236134
11/12/08 02:17
11/12/08 02:17
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
hey

create all models in MED, then place only the door in WED

create the door, save
using the door, create and all the switches to align to the door and save as template
then delete the door and switches 2-9 (leaving only switch1) and save as switch1
open template and repeat for switch 2thro 9
now the switches will have the correct coordinates to the door by creating the offset in the model

you can create all the switches in MED at 0,0,0 and then calculate their position to the door in code, but it'll be a pain when the door starts moving


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