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.

Code Snippets / Very simple basic way to find where you want to place your objects

Author
Message
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 1st Dec 2002 03:28
Well, I have heard everyone guessing and checking on positioning objects on your matrix. Well, I have my own technique that I find works great. You pop in this very, very, simple snippet......

set cursor 0,0
print camera position X()
print camera position Y()
print camera position Z()

and that gives you the coordinates of your camera position. You go to where you want an object to be, then copy down the coordinates, and pop them into POSITION OBJECT.

This can be done with whatever you want. I also used it to configure my camera angle for my battle system, by adding camera angle X() etc.

Simple, yet effective.

What are your strategies?

RPGamer
Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 1st Dec 2002 03:59
I draw the map out overhead, and find where I want it to be on a scale drawing. AutoCAD comes in very handy for this.
Epidemicz
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 4th Dec 2002 00:39
I use this way also, for the game I'm working on now it works great, since its a first person style game. With a 3rd person game or something, I would just make an extra camera that you can use to use this to find the exact coordinates.

I am the very disease you pretend to be.
Necrym
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: Australia
Posted: 4th Dec 2002 10:09
Yeah i do the same as you RPGgamer but i have mine write the coords in a file when i press a key eg: F1 for tree, F2 for rock. Then i use the file to load my objects.

Watch the bouncing cursor - now in 3d
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 5th Dec 2002 04:04
Good idea- i write it on a piece of paper

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
Necrym
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: Australia
Posted: 5th Dec 2002 09:32
Wow PAPER
thats to technical for me LOL

Watch the bouncing cursor - now in 3d
hexGEAR
21
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 5th Dec 2002 16:42
sometimes i use the camera method, and sometime i just draw my matrix grid out on paper and label the x and y axis. Using this method, i can just draw my entire stage on the grid, calculate positions from the grid and type them into the game I don't advise this method for matrices with tiles > 40 * 40, it'll take you hours to draw the grids.

your birth was a blessing, sent to live and die on earth as a lesson, we each have a star all you have to do is find it, once you do, everyone who sees it will be blinded - DMX
actarus
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location: 32 Light Years away
Posted: 5th Dec 2002 17:42
I print the positions and angles to screen and I simply move using my awesome mouselook code. héhé

Just remember that you're standing on a planet that's evolving
And revolving at nine hundred miles an hour!
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 6th Dec 2002 03:17
your awesome mouse look code
Kensupen
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: United States
Posted: 6th Dec 2002 06:46
I usually do that, but I have an array store the data and then write a file from that data so I can open it into notpad and dump it into my program.

-Kensupen
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 6th Dec 2002 14:13
I love my pencil and my paper. I will never abandon them

Lol

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
actarus
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location: 32 Light Years away
Posted: 6th Dec 2002 14:22
-your awesome mouse look code

I think someone needs a sarcasm detector.

Just remember that you're standing on a planet that's evolving
And revolving at nine hundred miles an hour!
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 6th Dec 2002 21:49
sarcasm!

I thought you were just being pompus

silly me
actarus
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location: 32 Light Years away
Posted: 7th Dec 2002 00:31
héhé

Just remember that you're standing on a planet that's evolving
And revolving at nine hundred miles an hour!
actarus
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location: 32 Light Years away
Posted: 7th Dec 2002 00:33
I'm no big coder,I figure my own mouse code alone like I do for the rest but that's about it.It's slower but it stays much more when you find it on your own.

Just remember that you're standing on a planet that's evolving
And revolving at nine hundred miles an hour!

Login to post a reply

Server time is: 2024-04-20 16:05:03
Your offset time is: 2024-04-20 16:05:03