I Wanna Community
Fangames => Game Design => Programming Questions => Topic started by: PikachuLPer on September 14, 2016, 07:27:30 AM
-
I want to make some spikes where you can stand on like in the boshy good level design room or the kill the guy spikes.
But i dont know if someone answers it would be awesome. :atkHappy:
- PikachuLPer
-
I haven't tried it but I suspect that the easiest way without recoding a bunch of things would be to make a new object that has objBlock as it's parent. The sprite would be just the flat surface that you can stand on and then in the create event for the object put
event_inherited();
instance_create(x,y,objSpikeDown);
So essentially you have the flat block to stand on and a downward spike jutting out the bottom.
-
Ehm i dont know why but im dying if im trying to walk on it any help?
-
comment out the code that creates the spike and make sure standing on the block works.
-
i puted in the code but i still die when i try to walk on it
-
Take out the code that makes the spike. Make sure that you can walk on the block object. Its parent should be objBlock.
-
The spike object probably has priority over the block in your game. If you're using studio, try moving your block object above the spike object in the object library.
-
got it to work now thanks for the help :atkHappy: