Search found 16 matches

by therealcos
Mon Feb 17, 2014 11:23 pm
Forum: Bug reports
Topic: R.U.B.E bug OS X 10.9 Mavericks
Replies: 27
Views: 109260

Re: R.U.B.E bug OS X 10.9 Mavericks

Gah, nevermind me - it works!
by therealcos
Mon Feb 17, 2014 11:21 pm
Forum: Bug reports
Topic: R.U.B.E bug OS X 10.9 Mavericks
Replies: 27
Views: 109260

Re: R.U.B.E bug OS X 10.9 Mavericks

I tried everything in this thread and I'm still seeing this issue. I just downloaded v1.5.4 and it's still giving me the same problem - any ideas?
by therealcos
Sat Feb 01, 2014 1:06 am
Forum: Box2D tutorial discussion
Topic: Smooth foreground/background scaling (a la Downhill Supreme)
Replies: 2
Views: 13621

Re: Smooth foreground/background scaling (a la Downhill Supr

Ahhh ray casting - genius!

I tried the 'uptake' equation for smooth zooming and it worked great! Thanks so much!
by therealcos
Thu Jan 30, 2014 5:56 am
Forum: Box2D tutorial discussion
Topic: Smooth foreground/background scaling (a la Downhill Supreme)
Replies: 2
Views: 13621

Smooth foreground/background scaling (a la Downhill Supreme)

How did you create the smooth, dynamic scaling of both the foreground and background layers in Downhill Supreme? I've already tried to do something similar with a project of my own by setting the scale of the each layer equal to the speed of a given body times a constant, but this has produced a rea...
by therealcos
Fri Dec 13, 2013 4:33 am
Forum: R.U.B.E discussion
Topic: Best Way to Create 'Infinite Ground'?
Replies: 1
Views: 7168

Best Way to Create 'Infinite Ground'?

I have a sort of side-scrolling game in which a hero moves from left to right over a ground that I'd like to be dynamically generated and infinite. To accomplish this, I have 2 large sensors that are off screen and follow the hero - one in back (to the left) and one in front (to the right). Right no...
by therealcos
Sat Nov 30, 2013 5:04 pm
Forum: R.U.B.E discussion
Topic: Sensors not reporting contact
Replies: 5
Views: 10251

Re: Sensors not reporting contact

Got it working! The problem was that I was updating the sensor body/fixtures with a SetTransform from within the update method so that it would follow the hero's position. Every time the sensor was in motion (i.e. every time its position was being updated) it wouldn't read the contact. To fix this I...
by therealcos
Sat Nov 30, 2013 4:38 pm
Forum: R.U.B.E discussion
Topic: Sensors not reporting contact
Replies: 5
Views: 10251

Re: Sensors not reporting contact

I actually have a few sensor fixtures on the same body that I wanted to check individually for contact, but even when I iterate through all the fixtures in the body, it still doesn't work. I modeled my contact listener after the one used in this tutorial: http://www.raywenderlich.com/28606/how-to-cr...
by therealcos
Fri Nov 29, 2013 9:02 pm
Forum: R.U.B.E discussion
Topic: Sensors not reporting contact
Replies: 5
Views: 10251

Sensors not reporting contact

I have a few sensor fixtures in my world that move with the hero, and I'm trying to set them up so that they report a contact whenever they're overlapping with static bodies called "planets". I set up a standard contact listener (which correctly reports other contacts within the world) and...
by therealcos
Thu Oct 03, 2013 7:58 pm
Forum: Box2D tutorial discussion
Topic: Editing the Step method within b2World.cpp
Replies: 1
Views: 7332

Editing the Step method within b2World.cpp

I'm trying to destroy a body in my world upon collision with another body, and I'm doing so (following your tutorials) by putting the body to be destroyed into a vector so that I can call DestroyBody on it after the current timestep. I'm just having trouble figuring out where exactly in the code to ...
by therealcos
Thu Sep 26, 2013 9:51 pm
Forum: Box2D tutorial discussion
Topic: Applying an impulse to a body in the direction of a touch
Replies: 4
Views: 12520

Re: Applying an impulse to a body in the direction of a touc

...aaaaand I just found the convertToGL function in CCDirector. Thanks for all the help!