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
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
6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood), 1,268 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
(SOLVED)View and the SHOW flag wont work? #282455
08/01/09 10:11
08/01/09 10:11
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline OP
User
Schmerzmittel  Offline OP
User

Joined: Aug 2005
Posts: 512
Bayern
Hallo,

im trying to make a view to test with. Ok. If i start the testmap, the view is shown. With the console i can use camera2.flags &= ~SHOW. That works perfect. The view is deactivated.

But if i use the camera2.flags |= SHOW command, the view wont activate. Ive tryed set(camera2, SHOW) and many other things. But it isnt working.

Does anyone know about it?

Last edited by Schmerzmittel; 08/01/09 17:33.

A7 Com V7.80
Re: View and the SHOW flag wont work? [Re: Schmerzmittel] #282457
08/01/09 10:33
08/01/09 10:33
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
i have no problems using set or reset, these are only defines for &= ~ and |= anyway, so if 1 works they both will

are you sure you have a high enough layer to draw camera2 above the default camera view, i think the camera.layer is 1

the views i created are through the view_create command and not done initially at startup, so that may have something to do with it?

Re: View and the SHOW flag wont work? [Re: MrGuest] #282461
08/01/09 10:49
08/01/09 10:49
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline OP
User
Schmerzmittel  Offline OP
User

Joined: Aug 2005
Posts: 512
Bayern
I did the following:

I define the View in my main.c:

VIEW* camera1 =
{
pos_x = 0;
pos_y = 0;
size_x = 200;
size_y = 200;
layer = 5;
flags = SHOW (or VISIBLE - ive tryed both)
}

If i start the script, the camera1 is shown. I can deactivate it by reset(camera1, VISIBLE) and camera1.flags &= ~VISIBLE (or with SHOW both works).

But i cant activate it again with set(camera1, SHOW) - or VISIBLE and the other code.


EDIT:
After starting the script, both cameras are shown.

Last edited by Schmerzmittel; 08/01/09 10:50.

A7 Com V7.80
Re: View and the SHOW flag wont work? [Re: MrGuest] #282462
08/01/09 10:50
08/01/09 10:50
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
Just in case you didn't notice, "camera2.flags &= ~SHOW" is a lite-C command, not a console string. The console only changes variables with "=". Thus, what you tried can't work anyway.

Re: View and the SHOW flag wont work? [Re: Petra] #282466
08/01/09 10:58
08/01/09 10:58
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline OP
User
Schmerzmittel  Offline OP
User

Joined: Aug 2005
Posts: 512
Bayern
Hm...i didnt notice that.

Then i try it with a keybinding and see what happens. Thanks.


A7 Com V7.80
Re: View and the SHOW flag wont work? [Re: Schmerzmittel] #282510
08/01/09 17:26
08/01/09 17:26
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline OP
User
Schmerzmittel  Offline OP
User

Joined: Aug 2005
Posts: 512
Bayern
Ok thanks. It works now.


A7 Com V7.80

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