Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 571 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to merge two objects in level in A6 #90428
09/17/06 08:12
09/17/06 08:12
Joined: Sep 2006
Posts: 25
H
hernan Offline OP
Newbie
hernan  Offline OP
Newbie
H

Joined: Sep 2006
Posts: 25
I have met a problem when I design a game,that is two models in WED and they are designed just like one when they rotate,but one is visible and the other is not unless it's clicked.
I have used Grouping in WED but it does work,please tell me how to design this.

Re: How to merge two objects in level in A6 [Re: hernan] #90429
09/17/06 13:05
09/17/06 13:05
Joined: Sep 2006
Posts: 25
H
hernan Offline OP
Newbie
hernan  Offline OP
Newbie
H

Joined: Sep 2006
Posts: 25
just like desk and book on it,when we move,rotate the desk, the book moves with it.but the desk is visible,the book is not.

Re: How to merge two objects in level in A6 [Re: hernan] #90430
09/17/06 13:18
09/17/06 13:18
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
I really dont know what you talking about. Do you need a code to move the desk and the book together or you are asking how to turn invisible the book unless its clicked?

Re: How to merge two objects in level in A6 [Re: demiGod] #90431
09/17/06 13:46
09/17/06 13:46
Joined: Sep 2006
Posts: 25
H
hernan Offline OP
Newbie
hernan  Offline OP
Newbie
H

Joined: Sep 2006
Posts: 25
Ah,my English is really bad,I need a code to move the desk and the book together just like they are one model,but not in fact.

Re: How to merge two objects in level in A6 [Re: hernan] #90432
09/17/06 14:18
09/17/06 14:18
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
First of all = wrong forum if you are searching for a fix to some code (Scripting forum);
However, you could solve your problem in several ways:

a) if you just want to show the book over the desk on mouse click, probably you just need a model with two frames, one with just the desk and the other frame with the desk and the book over it, and change the frames with mouse click;

b) if you need to aplly some physics code to the book either, you could use some kind of attach code:

Code:

entity* deskEntity;
entity* bookEntity;

action desk
{
deskEntity=my;
while(bookEntity==null){wait(1);}
while(1)
{
temp.x=my.x;
temp.y=my.y;
temp.z=my.z + 100;//play with this value
vec_for_vertex(temp,my,80);//play with the vertex number to attach book
vec_set(book.x,temp);

//insert here the code to move or rotate the desk vg. C_move, etc...
wait(1);
}
}

action book
{
bookEntity=my;
//my.invisible=on;
//etc...
}



I hope it helps.

Re: How to merge two objects in level in A6 [Re: demiGod] #90433
09/17/06 14:28
09/17/06 14:28
Joined: Sep 2006
Posts: 25
H
hernan Offline OP
Newbie
hernan  Offline OP
Newbie
H

Joined: Sep 2006
Posts: 25
thanks,I think a) is the best for me,thanks,I get it.


Moderated by  HeelX, rvL_eXile 

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