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 / Collision-->stop moving need help with it

Author
Message
1beginner1
15
Years of Service
User Offline
Joined: 28th Jun 2009
Location: Belgium
Posted: 28th Jun 2009 20:05 Edited at: 29th Jun 2009 12:56
This is my first project i want to make a little maze game. I have one object(id=1) that can be moved by the arrow keys. And a few other. Witch code does i need to become the result that object can't move through the other object? I have sparky collision.
I searched all over the forum but i don't get it how it is just working and what you really need to type so the object doesn't move throuh the other objects.
Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 29th Jun 2009 01:43
Search the forum for sparky's collision, there are a lot of posts asking how to use it.

You can use a for loop to make multiple objects with fewer lines of code.



1beginner1
15
Years of Service
User Offline
Joined: 28th Jun 2009
Location: Belgium
Posted: 29th Jun 2009 09:07
Thanks Phosphoer

My code is now much shorter and i will take a look on other topics about sparky's collision.

Login to post a reply

Server time is: 2024-10-01 06:00:40
Your offset time is: 2024-10-01 06:00:40