Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 3,790 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Simple Program, Doesn't Work [Re: Shadow969] #146819
08/08/07 21:55
08/08/07 21:55
Joined: Jul 2007
Posts: 7
S
SpaceXscape Offline OP
Newbie
SpaceXscape  Offline OP
Newbie
S

Joined: Jul 2007
Posts: 7
I mean for a pong game.

Re: Simple Program, Doesn't Work [Re: SpaceXscape] #146820
08/08/07 22:16
08/08/07 22:16
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Ah lol, I'm getting old! All this new stuff...

Re: Simple Program, Doesn't Work [Re: Shadow969] #146821
08/08/07 23:09
08/08/07 23:09
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Noticed your flag

PANEL* panDisplay ={ flags = VISIBLE;}

should be

PANEL* panDisplay ={ flags |= VISIBLE;}

Hope this helps
Ottawa

Re: Simple Program, Doesn't Work [Re: Ottawa] #146822
08/09/07 00:01
08/09/07 00:01
Joined: Jul 2007
Posts: 7
S
SpaceXscape Offline OP
Newbie
SpaceXscape  Offline OP
Newbie
S

Joined: Jul 2007
Posts: 7
Quote:

Hi!

Noticed your flag

PANEL* panDisplay ={ flags = VISIBLE;}

should be

PANEL* panDisplay ={ flags |= VISIBLE;}

Hope this helps
Ottawa




Thanks, any ideas on where i can get a ball and paddle model?

Re: Simple Program, Doesn't Work [Re: Ottawa] #146823
08/09/07 01:08
08/09/07 01:08
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Quote:

PANEL* panDisplay ={ flags |= VISIBLE;}
Hope this helps





This doesn't help, it's wrong. You define the flags in the panel definition. There is no need to or them together as flags can now become random if it isn't initialized with zero.


Always learn from history, to be sure you make the same mistakes again...
Re: Simple Program, Doesn't Work [Re: Uhrwerk] #146824
08/09/07 02:24
08/09/07 02:24
Joined: Jul 2007
Posts: 7
S
SpaceXscape Offline OP
Newbie
SpaceXscape  Offline OP
Newbie
S

Joined: Jul 2007
Posts: 7
can someone please answer my question?

Re: Simple Program, Doesn't Work [Re: SpaceXscape] #146825
08/10/07 13:37
08/10/07 13:37
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Sorry SpacXscape to "but in" but a question on flags as come up
because of this comment that I made and I would like to
clear up the facts

Are you saying that flags = VISIBLE is used inside the panel def.
and that or (my.flags |= VISIBLE;) is used only outside?
I've got to read on this again.
If this is the case I have a lot of corrections to do.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Simple Program, Doesn't Work [Re: Ottawa] #146826
08/10/07 13:42
08/10/07 13:42
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
If you set a flag with "=", you will reset all other flags that where set before. This is normally not what you want, but it is when you are defining the panel. When defining a panel, there are no other flags set yet (you can be sure of that), so you can use "=".

Normally when you define a new variable it will have random content if you don't initialize it. If that where the case for the "flags" parameter, setting the flag with "|=" would be harmful because you MUST overwrite the content of flags. But I don't think flags contains random content becuase if you omit the flags parameter, all flags will be 0. So if I'm right, you can set it with both = and |=. Nevertheless, = is still clearer because |= indicates that other flags might have been set before (which is never the case in a panel definition.)

Re: Simple Program, Doesn't Work [Re: Excessus] #146827
08/10/07 22:41
08/10/07 22:41
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
HI Excessus!

I like this explanation. (I've copied it)
I've done a bit of cleaning and it's not to bad.
I had most of them right.

Now I hope that SpaceXcape will find the models that he was looking for.

Ottawa

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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