Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,310 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
vec_set(panel_1, panel_2); #288569
09/07/09 13:16
09/07/09 13:16
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline OP
Member
Garrettwademan  Offline OP
Member

Joined: Jan 2006
Posts: 245
PA
I stumbled upon this, and maybe you want to add this to the manual because I was fighting a bug off for about 3 to 4 hours trying to figure out why one of my panels were not showing up. When you vec_set panels to each other, they work like...

vec_set(panel_1, panel_2); will equal out to be
panel_1.pos_x = panel_2.pos_x;
panel_1.pos_y = panel_2.pos_y;
panel_1.visible = panel_2.visible;

That unknown visible killed me in debugging. Maybe it is in there, but I didn't find reference to it.


Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: vec_set(panel_1, panel_2); [Re: Garrettwademan] #288573
09/07/09 13:56
09/07/09 13:56
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
I was curious and tried it, but just got a crash.

If vec_set were for panels, I think it would be named pan_set.

Re: vec_set(panel_1, panel_2); [Re: Tobias] #288608
09/07/09 15:43
09/07/09 15:43
Joined: Aug 2008
Posts: 133
Sweden, Stockholm
E
Enduriel Offline
Member
Enduriel  Offline
Member
E

Joined: Aug 2008
Posts: 133
Sweden, Stockholm
vec_set uses the first 3 elements, in your case it used the pos and visible elements. That's why it works with angles ( pan, tilt, roll ), colors (red, green, blue ) and coordinates such as x,y,z tongue

Re: vec_set(panel_1, panel_2); [Re: Enduriel] #288763
09/08/09 13:31
09/08/09 13:31
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
vec_set(panel_1.pos_x, panel_2.pos_x);

Now vec_set have a vector (from pos_x upwards to pos_z), panel_1 without pos_x is not a vector!


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