Author Topic: Boshy Spike Stand How?  (Read 2159 times)

PikachuLPer

  • Wannabe
  • Posts: 18
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 53.0.2785.101 Chrome 53.0.2785.101
    • View Profile
  • Playstyle: Keyboard
Boshy Spike Stand How?
« 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 like games

WetWookie

  • Cherry Eater
  • Posts: 90
  • OS:
  • Windows 10 Windows 10
  • Browser:
  • Firefox 48.0 Firefox 48.0
    • View Profile
  • Playstyle: Keyboard
Re: Boshy Spike Stand How?
« Reply #1 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.

PikachuLPer

  • Wannabe
  • Posts: 18
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 53.0.2785.101 Chrome 53.0.2785.101
    • View Profile
  • Playstyle: Keyboard
Re: Boshy Spike Stand How?
« Reply #2 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?

i like games

WetWookie

  • Cherry Eater
  • Posts: 90
  • OS:
  • Windows 10 Windows 10
  • Browser:
  • Firefox 48.0 Firefox 48.0
    • View Profile
  • Playstyle: Keyboard
Re: Boshy Spike Stand How?
« Reply #3 on: September 14, 2016, 12:38:40 PM »
comment out the code that creates the spike and make sure standing on the block works.

PikachuLPer

  • Wannabe
  • Posts: 18
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 53.0.2785.113 Chrome 53.0.2785.113
    • View Profile
  • Playstyle: Keyboard
Re: Boshy Spike Stand How?
« Reply #4 on: September 14, 2016, 12:41:21 PM »
i puted in the code but i still die when i try to walk on it

i like games

WetWookie

  • Cherry Eater
  • Posts: 90
  • OS:
  • Windows 10 Windows 10
  • Browser:
  • Firefox 48.0 Firefox 48.0
    • View Profile
  • Playstyle: Keyboard
Re: Boshy Spike Stand How?
« Reply #5 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.

pieceofcheese87

  • Global Moderator
  • The Kid
  • Posts: 346
  • Personal Text
  • OS:
  • Windows 10 Windows 10
  • Browser:
  • Chrome 52.0.2743.116 Chrome 52.0.2743.116
    • View Profile
    • Twitch Tv Channel
  • Playstyle: Keyboard
Re: Boshy Spike Stand How?
« Reply #6 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.
Signature

PikachuLPer

  • Wannabe
  • Posts: 18
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 53.0.2785.116 Chrome 53.0.2785.116
    • View Profile
  • Playstyle: Keyboard
Re: Boshy Spike Stand How?
« Reply #7 on: September 16, 2016, 09:08:54 AM »
got it to work now thanks for the help  :atkHappy:

i like games