Hi Ryan, yes, essentially this is true. However, see my earlier post to Jim.

YOu'd really want to keep your loop dynamic. So the time between each iteration 
is really a living, changing thing. :)

Yes, the movement vectors for each entity in your game will be longer or 
shorter depending on how you want your entities to travel. The longer the 
vector, the faster the perceived motion.

HTH and have a great weekend!

Cara :)


---
View my Online Portfolio at:

http://www.onemodelplace.com/CaraQuinn

Follow me on Twitter!

https://twitter.com/ModelCara

On Aug 1, 2013, at 4:10 AM, Ryan Strunk <[email protected]> wrote:

Hi Cara,
I'm curious about the frame rate concept. I assume this would be based on
the time of your game loop? If your game loop is instructed to wait 5
milliseconds at the end to save processing power, then the movement rate
would, in essence, be triggered every 5 milliseconds? For faster characters,
you would just give them greater velocities?
Thanks much,
Ryan

-----Original Message-----
From: Gamers [mailto:[email protected]] On Behalf Of Cara Quinn
Sent: Tuesday, July 30, 2013 7:39 PM
To: Gamers Discussion list
Subject: Re: [Audyssey] looking for programming advice:
cyntaxdifferencebetween bgt and java

Hi Ryan, yes and no.

If you're using collision detection, you can actually have your player's
avatar move and if he's unable to do that then the collision detection
routines can stop him for you. YOu don't even need a flag.

If your player is moving at a slower speed and touches a wall, then gently
stop him. If he is running and touches a wall then give him some damage,
stop him and bounce him back a bit based on his velocity. Does this make
sense?

It's really the job of the collision detection to decide whether or not your
player can move.

Obviously there may be other situations you may want to check for other than
collisions but the concept of attempting the move is what I'm getting at
here.

In a real physical situation sometimes you can't walk because the hill is
too steep. Know what I mean? Nothing is really stopping you but there's a
physical reason. YOu attempt to walk but find you cannot.

So let's look at this another way;

You're velocity is 0. You attempt to walk which simply changes your velocity
to something greater than 0.

The game loop processes your player's movement and if nothing is preventing
you from moving in the direction you want at the speed you want then you do.
Simple as that. If something is in your way then your collision detection
will stop you or move you back to where you were and reassign your velocity
to 0.


Obviously this is really primitive but do you get the idea?

Also, as Ian has mentioned, you would want to also take into account the
timing of your game loop or your frame rate as we've been calling it as
well, to manage your movements. YOu can sort of think of this as a movie.
But it's a dynamic movie with interaction. :)

Does this make sense?

If not then by all means, just shout back out! -And I'm happy to clarify and
I'm sure Thomas, Ian and others will happily do so as well. :)

HTH 

Cara :)
---
View my Online Portfolio at:

http://www.onemodelplace.com/CaraQuinn

Follow me on Twitter!

https://twitter.com/ModelCara


---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].


---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].

Reply via email to