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
2 registered members (AndrewAMD, ozgur), 1,421 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
how to create a door opening with a code.. #234848
11/04/08 23:18
11/04/08 23:18
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)
Hi all,


I'm kinda new to the Gamestudio Enginge and all its stuff, im trying to learn it all on my own at home (at home, i dont have inet, so im dl'ing all the tut's and read and read and read :p ) but now im on a point at where i really dont know how to manage this..

I'm trying to set up a door (sliding) who only opens if i press the right numbers on a tablet..
i found a lot of tutorials to actually script a door who's sliding, and i can also manage to open the door with a switcher.. but now the problem is i want to have my switcher to be a (little) terminal with the numbers 1-9 on it.. and i have to press the right numbers to open the door.

so my first problem is:

can i model the hole switch into one model, and somehow read the buttons 1-9 out of it? or do i have to model the buttons seperately and move it onto the switch?
the problem is, i wanted to have many of the switches.. now do i have to do it for each door seperately? it would be perfect if i can use one model for all doors smile

second problem then:

if i get this right, is it fast enough for gamestudio? or is the hole idea bad?


hopefully u got my problem smirk

and hopefully u have some answers smile


thx, cheers and rock'n roll smile

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: how to create a door opening with a code.. [Re: flutschi] #234852
11/04/08 23:48
11/04/08 23:48
Joined: Aug 2008
Posts: 218
U.S.
GamerX Offline
Member
GamerX  Offline
Member

Joined: Aug 2008
Posts: 218
U.S.
Do you want this to come up in a panel or do you want the player to just bend down and tilt to look at the panel up close?


"You may never know what results come of your action, but if you do nothing there will be no result."
-Mahatma Gandhi
Re: how to create a door opening with a code.. [Re: GamerX] #234853
11/05/08 00:00
11/05/08 00:00
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Ok here is a little example i threw together. It basically gives you a keypad where you can enter a 4-digit key-code and check whether it is correct or not.

It is easily extendable to any digit-size key-code.

For your specific situation i would assign a pin-number to each keypad using the model's own skills or strings, and then when you press enter on the keypad, let my liitle example test against this key-code.

It is much easier to bring the panel up than to do it using the model. This is how games like splinter-cell did it, and it works.

Here is the example >>>
http://www.djbm.kawanda.net/public_files/keypad_example.zip



Last edited by DJBMASTER; 11/05/08 01:03.
Re: how to create a door opening with a code.. [Re: DJBMASTER] #234860
11/05/08 02:03
11/05/08 02:03
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
very cool example

Re: how to create a door opening with a code.. [Re: badapple] #234864
11/05/08 03:12
11/05/08 03:12
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
nice example. thnx


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: how to create a door opening with a code.. [Re: delinkx] #234959
11/05/08 12:25
11/05/08 12:25
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)
thx @ djbmaster

i know with inputs its much easier, but i didnt make myself clear enough smile i dont want to solve it with inputs.. i wanna do it with models, because i need it also for other things..
and i wanna learn how this works.. so i really like to have the model-trace thing..

thx a lot anyway!

edith says:

Quote:
Do you want this to come up in a panel or do you want the player to just bend down and tilt to look at the panel up close?


i just want him to look at the panel and with a key (mouse or some use-key) to activate the numbers.. i thought about making a extra panel when he clicks on the switch that the panels come to show up and he can click there on the screen, but still i would like to do it with model-detection..

thx a lot

Last edited by flutschi; 11/05/08 13:05.

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: how to create a door opening with a code.. [Re: flutschi] #234999
11/05/08 14:21
11/05/08 14:21
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
ok i'll try and re-do my example a bit for what you want. Gimme a day...lol.

Re: how to create a door opening with a code.. [Re: DJBMASTER] #235013
11/05/08 15:27
11/05/08 15:27
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)
hmm, u dont have to give me the hole code smile

just some input.. like how do i create a model with 9 models on it that i can later detect with scan / trace?

i mean, if i create a model in MED.. then its ONE model... so later on in WED i can't find for example the button 1.. or does it exist something like array-modeling?
its hard to explain because english is not my main-language smile but i hope u get my point smile


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: how to create a door opening with a code.. [Re: flutschi] #235023
11/05/08 16:47
11/05/08 16:47
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
your trace-scan approach doesn't seem the best way to accomplish this task.
Let me understand what exactly you are asking for.

A player walks up to a locked door. There is a keypad next to it with 9 digits on it.

Do you want the player to press "enter" next to it and a 2D key-pad comes up where you enter the code, and the door opens?

Or do you want to be able to click on the keypad in a 3D view?

Re: how to create a door opening with a code.. [Re: DJBMASTER] #235052
11/05/08 18:45
11/05/08 18:45
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)
i want to be able to click on the keypad in a 3d view!

thats it smile


its not that it doesnt exists other solutions.. but its not only for a door, i mean for example a computer with keyboard, anithing with keyboard actually smile

just a few idea's i try to figure out the best way to do.. smile


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
Page 1 of 2 1 2

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