Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/15/26 08:28
Alternative to Stooq for Zorro S
by Petra. 10/14/26 07:04
Stooq now requires an API key
by cwford. 10/08/26 23:27
Purchase A8 full licence version
by jcl. 10/05/26 12:12
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 13,442 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Visible / Invisible #238871
11/30/08 21:19
11/30/08 21:19
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)
HiHo


I want to turn this code into lite-c:

c-script:
Quote:

action door_schalter
{
my.enable_scan = on;
my.event = scan_event;
}


and got this:

lite-c:
Quote:

action door_schalter()
{
set(my,ENABLE_SCAN);
my.event = EVENT_SCAN;
}


The problem now is, the door get invisible.. in c-script, it worked.. it just worked fine.. but now the door get invisible smirk

if i take the door_schalter action out of the object in MED, the door is there if i run.. but if i do the door_schalter into the object, the door gets invisible smirk


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: Visible / Invisible [Re: flutschi] #238875
11/30/08 21:27
11/30/08 21:27
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
The set() makro is used for flags, not for event types.
Use the emask instead:

Code:
function scan_event()
{
  if(EVENT_TYPE == EVENT_SCAN)
  {
     ..
  }
}

action door_schalter()
{
  my.emask |= (ENABLE_SCAN);
  my.event = scan_event;
}


Re: Visible / Invisible [Re: Xarthor] #238893
12/01/08 00:55
12/01/08 00:55
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, i try it out!


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

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