Fangames > Programming Questions
How to make the top and sides of screen work like walls and ceiling?
(1/1)
l3agu32:
How to make the top and side of screen work like walls and ceiling, instead of killing the kid. But with the bottom of the screen still killing the kid. Thank you!
Zero-G:
you could place blocks above the room or 1 long block that does the same.
im too lazy to figure out how and where you would need to go to code it that way.be lazy be smart
Thenader2:
You can do it in some ways, the way I do it is the lazy way.
I just take a normal block and on its creation code I add image_xscale for ceilings or add image_yscale for walls; after that I drag them outside of the room. Basically what Zero said but with image scaling :p
--- Code: ---image_xscale=25 //for ceiling
image_yscale=19 //for walls
--- End code ---
pieceofcheese87:
put this in the world's room start event and it will be in every room:
--- Code: ---a=instance_create(-32,0,objBlock);
a.image_yscale=19;
b=instance_create(832,0,objBlock);
b.image_yscale=19;
c=instance_create(0,-32,objBlock);
c.image_xscale=25;
--- End code ---
Navigation
[0] Message Index
Go to full version