View Single Post
  #8  
Old 08-09-2003, 08:31 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
When I made this script I was thinking on multiples of 16 and fooling around a bit. I didn't post the entire script but the key equations in it.

I already know it works, so don't say that it won't unless you've checked on something other than 800x600 or 1024x768. I just don't know how it works. I made it without knowing what I was doing is what I'm trying to say.

Like I am saying... I was just working on multiples of 16 because tiles in a row/column of a level are 64, pixels per tile are 16, etc.


Quote:
Originally posted by Chrisz
Sorry for double posting.. but i also noticed you /32 x.x that's wrong... graal tiles are 16x16 pixels ;x... 32x32 = 4 tiles

NPC Code:

viewx=playerx-1.5; if (viewx<0) viewx = 0;


And i think that should be what your looking for You can work out the rest.
Reply With Quote