A Random Creator
Member
Hello everyone, Im trying to make a room that has a black background with a tiled wood background on a portion of the screen. This might be way simpler than Im making it, but Im clueless.
here is my code:
Create:
Draw:
if you know what is wrong or you know a better way to do this then please tell me! Thanks!
P.S. I was kinda in a rush when I made this post, so if you need more information or something then please message me =)
here is my code:
Create:
Code:
MaxX = (room_width*0.8)/background_get_width(bgWood)
MaxY = (room_height*0.8)/background_get_height(bgWood)
MinX = room_width*0.1
MinY = room_height*0.1
Code:
total = ((MaxX-MinX)/background_get_width(bgWood))+((MaxY-MinY)/background_get_height(bgWood))
tX = MinX tY = MinY
for(i=1;i<total;i+=1) {
draw_background(bgWood,tX,tY)
tX += background_get_width(bgWood)
if(tX >= MaxX) { tx = MinX tY += background_get_height(bgWood) }
}
P.S. I was kinda in a rush when I made this post, so if you need more information or something then please message me =)