3D Changing color of the floor on top of the d3d_draw_wall

C

CornerLord

Guest
Hi everyone! How can I change sprite of the floor when my floor+ceiling object code is:

Create event:
Code:
ceil_tex = sprite_get_texture(s_ceiling, 0);
floor_tex = sprite_get_texture(s_floor, 0);
hrep = room_height/32;
vrep = room_width/32;
Draw event:
Code:
d3d_draw_floor(0, 0, 32, room_width, room_height, 32, ceil_tex, hrep, vrep);
d3d_draw_floor(0, 0, 0, room_width, room_height, 0, floor_tex, hrep, vrep);
I have tried to make a new object and put it top of that default floor by changing depth. It works somewhere but there are some places where it doesnt work :(
 
C

CornerLord

Guest
Should I just make floor to a separate object and place it block by block in room editor?
 
Top