Scrolling Game Development Kit Forum
SGDK Version 2 => Help, Errors, FAQ => Topic started by: Rubix Cube on 2009-08-25, 04:55:03 PM
-
I tread the halls of the help boards once again, and with me I carry this inquiry;
How would one such as I set sprites to refrain from passing through each other?
:laugh:
As I've said before (I think), I'm working on a racing game for SGDK2, and having cars pass through each other during a race is a bit of a problem. Can I set sprites to be solid, or even repel each other?
As always, any help is appreciated. :yes:
-
the clean game may be able to help you solve that. the packages are meant to be pushed around (its not perfect). by adding a few rules, you could have a "pushback" sprite. probably somebody who has more experience on sgdk2 can help you more ;D
-
Yes, please take a look at the ReactToPush functions in CleanGame. When I release SGDK2.1 beta as the release, I'll include these functions as standard functions. I don't have time to go into detail at the moment, but if you post your specific questions about ReactToPush I can answer them next time I'm on.
-
The ReactToPush function is delivered standard with version 2.1.2 that was just released. Give it a try.