Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,454 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Load level from string1 [Re: Ottawa] #248258
01/25/09 17:03
01/25/09 17:03
Joined: Nov 2008
Posts: 50
S
Secret_V Offline OP
Junior Member
Secret_V  Offline OP
Junior Member
S

Joined: Nov 2008
Posts: 50
I don't think so. Any other action I attach to the entity, works. Also, when I try loading the level straight away, instead of using the door, the action doesn't work either.

Re: Load level from string1 [Re: Secret_V] #248275
01/25/09 18:16
01/25/09 18:16
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

If I understand what your doing is the following

First level ...everything works.
Change level ...does not work
trying to use second level seperatly...does not work.

Is that the situation?
Ottawa smile

Re: Load level from string1 [Re: Ottawa] #248283
01/25/09 19:03
01/25/09 19:03
Joined: Nov 2008
Posts: 50
S
Secret_V Offline OP
Junior Member
Secret_V  Offline OP
Junior Member
S

Joined: Nov 2008
Posts: 50
That is correct. In my game, I made an intro which automatically transports the player to the level at the end of the intro. So when I change the level it transports the player to, from the level with working action to the level with not working action, it still doesn't work. Plus, any other action that I attach to my model, does work. So I don't think the problem can be the loading of the level, but I'm not sure...

Re: Load level from string1 [Re: Secret_V] #248615
01/28/09 00:49
01/28/09 00:49
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

Not everything follows an Entity in another level ...unless you have
prepared for that.
Look for the tutorial
Shooter With LevelChangingTutorial by Lee-Orr Orbach
in the free resources ..tutorial section. That might help.

There is something in AUM46 on level changing in the Q & A section.

If this is not the answer ...come back and we will try again.

Ottawa smile

Ps I was reading your other post in Ask the developpers...

The order of function, events and actions is important.
Your example shows action before event. It should be event before action.
Sometimes it's a small thing that makes the big bug ...hope you find your solution. smile

Last edited by Ottawa; 01/28/09 01:09.
Re: Load level from string1 [Re: Ottawa] #249237
02/01/09 11:05
02/01/09 11:05
Joined: Nov 2008
Posts: 50
S
Secret_V Offline OP
Junior Member
Secret_V  Offline OP
Junior Member
S

Joined: Nov 2008
Posts: 50
Well, it was kinda strange, but I solved it already. In the door_open() function, there was a line of code:

Code:
if((event_type == EVENT_CLICK) && (vec_dist(player, my) <= 100))


So I left out the vec_dist part, and then everything worked just fine. I think it had something to do with the player, but I'm not too sure... Anyway, It's solved, so I'm a happy guy. ^_^

Page 2 of 2 1 2

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