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.

AppGameKit Classic Chat / Help with Types, Arrays and shooting.

Author
Message
Josk
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 22nd Aug 2011 13:35
I have been playing around with AppGameKit and want to know if I am on the right track with tpes and Arrays.
I am having trouble getting sprite collision to work any help would be appreciated.

The following code is the start of a little invaders game.

If the above is done right I'm sure someone will find the code useful.
XanthorXIII
AGK Gold Backer
12
Years of Service
User Offline
Joined: 13th May 2011
Location:
Posted: 22nd Aug 2011 15:54
Josk,
Good start but I'd say you need to go through and do some code organization and more tab indentation to help with readability.
Also, you may want to go through and rename some of your variables to help with that.
Josk
16
Years of Service
User Offline
Joined: 2nd Apr 2008
Location:
Posted: 22nd Aug 2011 18:48
Yeah it is a bit of a mess, just get carried away sometimes. Which means its unreadable when I come back to it some time later.
XanthorXIII
AGK Gold Backer
12
Years of Service
User Offline
Joined: 13th May 2011
Location:
Posted: 22nd Aug 2011 19:24
And that's fine, even in my code I can get a little messy as well since I'm basically working my way through a problem.

Login to post a reply

Server time is: 2024-04-19 00:15:45
Your offset time is: 2024-04-19 00:15:45