Scrolling Game Development Kit Forum

SGDK Version 1 => Help/FAQ => Topic started by: eric22222 on 2006-10-18, 10:11:45 AM

Title: A rides on A?
Post by: eric22222 on 2006-10-18, 10:11:45 AM
I've had a little trouble with some collisions. I'd like to have to two boxes of the same class act like boxes should: one riding on the other. From what I've tried, "A rides on B" just results in the boxes sinking into each other. The project "Turok World" from a while back had boxes riding on each other, but that was with everything but "A rides on B" checked. It also resulted in the boxes flying up into the air...
Any suggestions?
Title: Re: A rides on A?
Post by: bluemonkmn on 2006-10-18, 04:24:01 PM
Have you tried creating two classes: Rider and Platform, and make each box a member of both?  (Then make riders ride on platforms)
Title: Re: A rides on A?
Post by: eric22222 on 2006-10-18, 07:36:59 PM
Ah, excellent; works perfectly. Thanks!