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.

2D All the way! / Simple question about Matrix - Urgent Please

Author
Message
diegocip
20
Years of Service
User Offline
Joined: 16th Jul 2005
Location:
Posted: 16th Jul 2005 17:16
Hi, Iam creating an big rpg game, using a matrix with 64x64 tiles...
The problem, is that my game dont use keyboard to move the
player, but use the mouse... A matrix have the perspective,
the big problem, is to detect the position ( tile ) of the mouse
on the matrix... Other problem is the diferent sizes of the
tiles to the player view.

The solution is simple, i need to use a orthogonal view, but,
i can“t create this in dark basic pro .. I tried modify the
field of view, the angle, the position, and varius camera
attributes, but dont have an orthogonal view

Anyone can help me to create this terrain, it can be in any way,
with matrix, with camera moviments, or with maths and 2d commands...
Or can helpme to detect the mouse position on the matrix???


I need this help urgent =\
I attached a screen of the type I need...

Tankyou very much to all,
and sorry my english, is not my main language =P
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 20th Jul 2005 05:22
It is not easy to find a 3Dpoint with your mousepointer.
And DarkBasic isn't designed to give you an orthogonal view. It will always be in perspectif.

Immunity and Annihalation makes Immunihalation...
NanoBrain
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 21st Jul 2005 01:30
diegocip,

Search for the topic of vector math, which you will need to understand in order to create such capabilities in your program.


+NanoBrain+

Login to post a reply

Server time is: 2026-06-12 07:23:48
Your offset time is: 2026-06-12 07:23:48