I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: PikachuLPer on September 14, 2016, 07:27:30 AM

Title: Boshy Spike Stand How?
Post 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
Title: Re: Boshy Spike Stand How?
Post by: WetWookie on September 14, 2016, 10:27:29 AM
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
Code: [Select]
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.
Title: Re: Boshy Spike Stand How?
Post by: PikachuLPer on September 14, 2016, 11:31:48 AM
Ehm i dont know why but im dying if im trying to walk on it any help?
Title: Re: Boshy Spike Stand How?
Post by: WetWookie on September 14, 2016, 12:38:40 PM
comment out the code that creates the spike and make sure standing on the block works.
Title: Re: Boshy Spike Stand How?
Post by: PikachuLPer on September 14, 2016, 12:41:21 PM
i puted in the code but i still die when i try to walk on it
Title: Re: Boshy Spike Stand How?
Post by: WetWookie on September 14, 2016, 12:48:44 PM
Take out the code that makes the spike. Make sure that you can walk on the block object. Its parent should be objBlock.
Title: Re: Boshy Spike Stand How?
Post by: pieceofcheese87 on September 14, 2016, 04:00:24 PM
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.
Title: Re: Boshy Spike Stand How?
Post by: PikachuLPer on September 16, 2016, 09:08:54 AM
got it to work now thanks for the help  :atkHappy: