FPS walls
#1
Posted 10 April 2012 - 10:17 AM
#2
Posted 10 April 2012 - 10:21 AM
___________________________________________
FATAL ERROR in
action number 1
of Draw Event
for object Obj_Basic_wall:
############################################################################################
VMError!! Occurred - Push :: Execution Error - Variable Get tex
at Object.Obj_Basic_wall.Draw.0 (line -1) - <unknown source line>
############################################################################################
and my code is:
{
d3d_draw_wall(x1,y1,z1,x2,y2,z2,tex,1,1);
}
#3
Posted 10 April 2012 - 10:22 AM
First, this problem may belong in the Novice Q&A section. Generally, that's where people ask questions and get help.
Secondly, when you're posting a problem, be sure to include as much detail as is relevant! In this situation, for example, you may post a screenshot of whats going wrong, and at the very least, the code that is causing problems. We can't see what may be wrong without seeing the code!!
EDIT: Oops, you've posted the code now. Ninja'd
Edited by ND4SPD, 10 April 2012 - 10:23 AM.
#4
Posted 10 April 2012 - 10:31 AM
{
x1 = x-16;
x2 = x+16;
y1 = y;
y2 = y;
z1 = 32;
z2 = 0;
tex = background_get_texture(Wall);
}
#5
Posted 10 April 2012 - 10:37 AM
{
tex = background_get_texture(wall);
d3d_draw_wall(x1,y1,z1,x2,y2,z2,tex,1,1);
}
That MAY solve it. I've only seen textures used in this way, where the tex variable is reassigned a value every drawing step.
#6
Posted 10 April 2012 - 10:39 AM
___________________________________________
FATAL ERROR in
action number 1
of Draw Event
for object Obj_Basic_wall:
############################################################################################
VMError!! Occurred - Push :: Execution Error - Variable Get z2
at Object.Obj_Basic_wall.Draw.0 (line -1) - <unknown source line>
############################################################################################
#7
Posted 10 April 2012 - 10:42 AM
tex = background_get_texture(wall);
d3d_draw_wall(x-16,y,0,x+16,y,32,tex,1,1);
}
Try that?
#8
Posted 10 April 2012 - 10:45 AM
#9
Posted 10 April 2012 - 10:47 AM
Would you mind posting a screenie?
Are there other walls or floors that are drawing correctly or otherwise? Perhaps there's a problem with the camera, and with setting the perspective?
#10
Posted 10 April 2012 - 10:50 AM
#11
Posted 10 April 2012 - 10:51 AM
#12
Posted 10 April 2012 - 10:52 AM
#14
Posted 10 April 2012 - 12:19 PM
OK, the only thing I can think of is the texture sizes may be off... that is, they need to be powers of two, like 16x16, 256x128, and so on. Or at least they used to be. But I don't work with Gamemaker Studio, so that may not be a problem.
Sorry, mate! I tried
#15
Posted 12 April 2012 - 08:17 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











