Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / errors, errors, errors!!!

Author
Message
Cooldude
16
Years of Service
User Offline
Joined: 10th Nov 2007
Location:
Posted: 11th Dec 2007 01:55
Hey,
Can anyone help me?? I don't know if I should use my other post or not cause this isn't exactly the same subject. What happens is I want to say that if 2 sprites collide then it resets there integers so that it goes to the beginning again.
Here's my code:



Here is my error:

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 11th Dec 2007 02:07
You have an if statement outside of a function.

Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)
Cooldude
16
Years of Service
User Offline
Joined: 10th Nov 2007
Location:
Posted: 11th Dec 2007 03:04
So how do I do it???
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 11th Dec 2007 03:06
Do what?

Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 11th Dec 2007 03:07
Do "it", which you don't have Benjamin, so it doesn't look like you can.

TheSturgeon(playing me at chess) : I will use my powers of the horse and pwnzor you.
aersixb9
16
Years of Service
User Offline
Joined: 29th Nov 2007
Location:
Posted: 11th Dec 2007 03:11
Try checking for the collision inside the game loop?



Or something like that...
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 11th Dec 2007 06:04
Statements must be held within functions in C++. You had;


...in the middle of nowhere. Place it in your main function and it should give no more errors.


Tux is my guildmaster.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA

Login to post a reply

Server time is: 2024-09-29 07:32:09
Your offset time is: 2024-09-29 07:32:09