 
General Info
Main Page
Latest News
Schedule
What is it?
About Matt
About This Site
Duke Enhancements
Latest Features
Older Features
Cheat Codes
Duke Insider
Language Basics
Compile Time
Room over Room
Player Structures
UserDef Explanations
More Information
Features Database
E Duke Forum
WW2GI Enhancements
Variables
Weapon Changes
Weapon Settings
System Variables
Events
All
|

Enhanced Duke Nukem Ideas
Copyright (C) 2000, Matt Saettler. All Rights Reserved.
Criteria:
|
| IdeaID is 91 |
| No Sorting |
Ranking |
Name |
Thinker |
200 |
CON: AddSpritePos |
Veldrik |
Difficulty Not Set by Matt |
Description |
Here is the basic gist of it
Firstly, you have
addspritepos
this would accept simply two integers (or an integer and the variable) as in
the following
// define the parameter (this saves making three different variations
of the same function
define SPRITE_X 0 // defines 0 for the x axis
define SPRITE_Y 1 // defines 0 for the y axis
define SPRITE_Z 2 // defines 0 for the z axis (up and down)
// for the sake of the example
gamevar SPEEDY_GONZALAS 512 0
// this is how you feed in the data and what it does
addspritepos SPRITE_X SPEEDY_GONZALAS // moves the actor in the x axis at
Speedy's distance of 512. |
Matt's Comments |
|
|