I'm trying to sort through the code!
Displaying 1-9 of 9 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Squirrel

Hiya! I'm Relee the squirrel, but I forget my password so I had to make a new login name. :)

I've been working on programming little bits of code, and I'm trying to find the parts of the verge code that deal with sprite movement and tracking. If anyone could lend me a hand, paw, or other appendage, I'd be much obliged!

Thanks!



Posted on 2001-07-26 21:48:00

Roto

(nt)




Posted on 2001-07-27 02:32:35

Squirrel

Tracking through the maps.

I need the code to tell where a character is, and the movement functions. Once I have those I plan to stick them all into my code.



Posted on 2001-07-27 13:43:52

Roto

I going to assume that you're trying to make a mapswitching function.

Here's what you have to do.

First, make two global (out of function) intergers (int gotox, gotoy; the names don't matter, just make sure you know which one holds the x variable and which one holds the y variable).

When you code up your mapswitch, make sure the x and y values passed to the global integers made up above (gotox = x; gotoy = x; Something like this), then load up the map using Map(filename).

Alright, you are going to have to set the player entity again. I assume you're already know how to do it, but use your globals this time (ex: SetPlayer(EntitySpawn(gotox,gotoy,chr_filename));).

This is really pseudo. But I guess no harm will be done if I just show you my method/functions...


This is the map switch function.

void MapSwitch(string mapfile, int x, int y, int nofade)
{
gotox=x;
gotoy=y;
Map(mapfile);
}

This sets up the player's entity.

void InitializeMap()
{
pc=EntitySpawn(gotox,gotoy,chr);
setplayer(pc);
}

I think you get the point. If you still need assistance, I'm here to help.



Posted on 2001-07-27 16:59:34

Squirrel

Actually, I'm trying to find the part of the verge source code that deals with watching where the player is on a given map.


I'm looking for the place in the source code that records and references the location of the player, or any npc sprites, on a map, for example a town.

I'm also looking for the movement functions in the source code, that take the keyboard input and respond by moving the player in some direction on the map.



Posted on 2001-07-27 18:13:22

Roto

The actual source code? Can't help you there. The only problem really being that I haven't looked at the source code. Maybe when I decide to get off my butt and put the C I'd learn to use, sorry.




Posted on 2001-07-27 20:36:47

Squirrel

Aw nutbunnies...

Well is there anybody here who knows?



Posted on 2001-07-27 21:41:06

Roto

You could ask Pikachu14, Delyn, the_Speed_Bump (they've looked/tinkered at/with the source code), and if that fails, you still have members of the dev team whose e-mail addresses are on this page. Whoever you turn to, just be sure to ask them nicely.





Posted on 2001-07-28 00:23:22

Kut

for the camera tracking...
function DoCameraTracking() in render.cpp

for the movement function...
function ProcessControls() (ProcessControls1() is what you're looking for, it's called from ProcessControls()). Both are located in engine.cpp

These informations comes from the v2.6 source code.
I hope this will help!



Failure is not an option, Windows is built with it!

Posted on 2001-07-28 22:17:18


Displaying 1-9 of 9 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.