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.

Newcomers DBPro Corner / Planety Esque and round sprites

Author
Message
alex911
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location: down the tube , to the left
Posted: 10th Feb 2007 20:20
I've bought DBpro a long time ago , but I couldn't find the time (and courage) to experiment with it. Now I've bought DBpro V1 and I've been messing around with 2D games.

Now I'm trying to make something like a planet sprite and a character sprite and make the character run around on the planet in a correct way.(I've added a drawing to clarify the thing)

Now to get the right angle for the character I'm trying tan and sin and stuff , but I can't get it working in a right way.
The second big thing that I'm having a problem with is the fact that you can't make a round sprite(that also has a spherical collsion model).

Is there a way to make round sprites (for the collision models) and can anybody maybe give me some good tutorials on geometry and how I could possibly overcome this little obstacle?

Thanks!

*put stupid comment here*

Attachments

Login to view attachments
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 10th Feb 2007 23:21
r#=radius of circle (hypotonuse sp?)
do
pressing left or right doesn't move man x/y rather increase or decrease angle#
x#=centre_of_circle_x#+cos(angle#)*r#
y#=centre_of_circle_y#+sin(angle#)*r#
sprite spr,x#,y#,manimage
loop


The word "Gullible" cannot be found in any English Dictionary.

Login to post a reply

Server time is: 2024-11-26 00:31:38
Your offset time is: 2024-11-26 00:31:38