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 / Help rotating a ball without changing directions.

Author
Message
Johnny Bolt
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location: South Jersey
Posted: 7th Mar 2005 12:52
I am looking for a way to make a ball appear to roll.



Is there a way other than using xrotate to make the ball appear to be rolling and not make it affect the way the ball moves. I just want to make it appear to be rolling. I also want to use the mom# to make it spin faster or slower as the ball speeds up and slows down.

Any help would be great

The only true failure is not to try at all...
Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 7th Mar 2005 13:32
This is code snippet forum, not a help forum, moving this to newcomers forum.
TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 7th Mar 2005 13:45
Somthing like this?

Didnt include the mom# part, becuase you should do some of the work.

Note: The above I didn't say, your just crazy.

Not a ripoff of The Twilight Zone
Johnny Bolt
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location: South Jersey
Posted: 8th Mar 2005 10:41 Edited at: 8th Mar 2005 10:42
yea it does work but at this time it would require a re-write of the movement code to take other factors involed with turning and such. This is what I was looking for though.

Thanks.

And by the way, I did post this in the NewComers forum. I had this problem recently that sometimes it posts messages in other forums? Maybe it's just me, I have been pulling a few late nighters.

The only true failure is not to try at all...
TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 8th Mar 2005 11:17
Turning...


Note: The above I didn't say, your just crazy.

Not a ripoff of The Twilight Zone
Johnny Bolt
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location: South Jersey
Posted: 8th Mar 2005 11:57 Edited at: 8th Mar 2005 12:00
Thanks. I've came up with pretty much the same thing. I would have to change too much of my current code to make the changes. So I've pretty much have put this on hold. The ball moves and turns and reacts like I would like it to, it just doesn't look like it's rolling. Right now I'm working on getting all the bigger stuff working like collision, timing, scoring and level changing. When I work out some of the other main items then I'll go back and work on the fluff.

I do appreciate the response. It's always good to know you're coding in the the right direction.

The only true failure is not to try at all...
Guyon
21
Years of Service
User Offline
Joined: 6th Jun 2003
Location: United States
Posted: 9th Mar 2005 03:13
One other suggestion is to try EZrotate. It is an inexpensive plugin and can really help with rotation and direction much better than with DBpro
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 9th Mar 2005 05:37
Well the full version was inexpensive, the other version was free !
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 10th Mar 2005 00:53
Have a look at my anser in this old post:

http://forum.thegamecreators.com/?m=forum_view&t=26289&b=1&p=0

Allows you to rotate ball properly, and move it aswell if you so wish.

Boo!
Johnny Bolt
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location: South Jersey
Posted: 10th Mar 2005 11:42 Edited at: 10th Mar 2005 14:01
Spooky, Thanks for the info. I checked out the DLL and the sample code you wrote and looks like exactly what I was needing. Unfortunately I also checked out the Hampster demo. This was also what I was looking at doing...less the hampster of course(and I though I was being original).

Well in any case I want to at least finish what I am working on and finish a complete game (even if it's not original, I need to show my kid that reguardless you always finish what you start, even if it's been done before.)

Thanks for the push in the right direction.

The only true failure is not to try at all...
Johnny Bolt
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location: South Jersey
Posted: 10th Mar 2005 13:48 Edited at: 10th Mar 2005 14:39
OK. If I use the command move object instead of position object, is there an effective way using EZR dll to give the appearance of movement or am I missing something?

I am using two functions to handle input and player movement



--the 1st function is adapted from the NGC examples--
-- the 2nd is used to propel the object forward and slow if no keys are pressed.

These two functions are called every loop.

This is kind of a follow the ball instead of the camera being at a semi stationary position viewing the object move through the maze.

The concept is to follow the object through a series of tunnels and alley ways.

Any suggestions?

The only true failure is not to try at all...

Login to post a reply

Server time is: 2024-11-13 19:50:22
Your offset time is: 2024-11-13 19:50:22