Path: chuka.playstation.co.uk!news From: "John Whitmore" Newsgroups: scee.yaroze.programming.2d_graphics Subject: 2 Questions - Same Game Date: Mon, 19 Oct 1998 12:30:31 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 22 Message-ID: <70f9cd$s3k10@chuka.playstation.co.uk> NNTP-Posting-Host: jwhit.demon.co.uk X-Newsreader: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Hi, I was wondering if anyone out there could help me? I am producing a 2D, tile based game for my Final year University Project. This is my first question: When using GsBG (GsCELL,GsMAP) what is the most efficient way of checking the value of the cell the PC character is 'standing' on? I.E. how can I tell if a cell is walkable/non-walkable for collision detection. I also wish to use this technique for the collection of bonuses within the level etc. Secondly a maths question, when moving my character around I wish to store a vector (x,y) of the direction it is facing so a weapon can be fired using this same vector. how is best to calculate this vector so it can be used in this situation? I have tried using the rotational value of the sprite, as this is how I am changing the visual appearance of the sprite on screen, but with no success. Thanks in advance, John