Blitz (164/218)

From:Gareth Griffiths
Date:26 Aug 2001 at 13:12:26
Subject:BlitzPC question (I know its to the wrong list!)

Hi,

First of all, how do I sub to the main BlitzPC list? The official site
appears to be gone, redirecting me to blitz3d.co.uk (which looks damn
interesting! :)

Secondly, I can't seem to get the following code to do anything:

-----------------------------------------------
Const Grav#=0.1
YSpeed=0 : X=320 : Y=240

If KeyDown(208) ;208 being the down arrow key
YSpeed=YSpeed-Grav
Endif

Y=Y+YSpeed
DrawImage ply,X,Y
-----------------------------------------------

(cropped a bit to save space, the relevant Graphics/Flip/LoadImage commands
etc. are all there)

Everything works if I change Grav to a number higher than 0.5 (0.501 even)
and when I press the down arrow, the image moves down the screen.

But as soon as I set it to 0.5 or lower, or even set it to 1 and tell it to
do Yspeed=Yspeed-(Grav/2) it refuses to work, and just sits there on the
screen.

I've also just noticed after putting a bit of info at the top of the screen
to tell me the values of the various X/Y things, that the minimum it will
take away is an integer value - is it possible to do the maths with values
below 1?!?! Surely it is!

Cheers,
GazChap.



Gareth Griffiths -- mailto:mail@gazchap.com -- http://www.gazchap.com
"Bother", said Pooh, as Piglet stamped on his boll**ks.

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie