I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: l3agu32 on July 01, 2016, 04:03:38 PM

Title: How to make the top and sides of screen work like walls and ceiling?
Post by: l3agu32 on July 01, 2016, 04:03:38 PM
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!
Title: Re: How to make the top and sides of screen work like walls and ceiling?
Post by: Zero-G on July 01, 2016, 04:11:01 PM
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
Title: Re: How to make the top and sides of screen work like walls and ceiling?
Post by: Thenader2 on July 01, 2016, 04:18:12 PM
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: [Select]
image_xscale=25 //for ceiling
image_yscale=19 //for walls
Title: Re: How to make the top and sides of screen work like walls and ceiling?
Post by: pieceofcheese87 on July 01, 2016, 04:18:25 PM
put this in the world's room start event and it will be in every room:
Code: [Select]
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;