Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, OptimusPrime), 15,229 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: 2d games [Re: Panda_Dude] #366732
04/06/11 20:23
04/06/11 20:23
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
There has to be a more detailed error message than that!?


Always learn from history, to be sure you make the same mistakes again...
Re: 2d games [Re: Uhrwerk] #366733
04/06/11 20:31
04/06/11 20:31
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
"player" is a pointer that is built into Lite-C. You need not redefine it in the script.


Eats commas for breakfast.

Play Barony: Cursed Edition!
Re: 2d games [Re: Uhrwerk] #366736
04/06/11 20:39
04/06/11 20:39
Joined: Mar 2010
Posts: 56
Hertfordshire, England
Panda_Dude Offline OP
Junior Member
Panda_Dude  Offline OP
Junior Member

Joined: Mar 2010
Posts: 56
Hertfordshire, England
Uhrwerk, yes I was doing a test run, rather than just running it which is why I got the shorter error message. Edited my post.
So do I just get rid of the 'ENTITY* player;' line? I did that and the script loads the level, then I get an error message saying 'crash in main' I tried putting a 'wait (3)' after the level load line, but it still does it.

Last edited by Panda_Dude; 04/06/11 20:41.
Re: 2d games [Re: Panda_Dude] #366738
04/06/11 20:45
04/06/11 20:45
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
yes you just get rid of that line, it's already defined.


3333333333
Re: 2d games [Re: Quad] #366739
04/06/11 20:48
04/06/11 20:48
Joined: Mar 2010
Posts: 56
Hertfordshire, England
Panda_Dude Offline OP
Junior Member
Panda_Dude  Offline OP
Junior Member

Joined: Mar 2010
Posts: 56
Hertfordshire, England
edited my post. tongue
the crash happens on the line 'camera.x = player.x;' if that helps

Last edited by Panda_Dude; 04/06/11 20:57.
Re: 2d games [Re: Panda_Dude] #366773
04/07/11 05:56
04/07/11 05:56
Joined: Mar 2010
Posts: 56
Hertfordshire, England
Panda_Dude Offline OP
Junior Member
Panda_Dude  Offline OP
Junior Member

Joined: Mar 2010
Posts: 56
Hertfordshire, England
I got it sorted. The problem was that the player entity was inside the floor, which the script didn't seem to like. I also had to move 'camera.x = player.x;' and 'camera.y = player.y;' inside the action. Thanks for the help guys. laugh

Last edited by Panda_Dude; 04/07/11 06:05.
Page 2 of 2 1 2

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