The RPG Maker Resource Kit

RMRK RPG Maker Creation => General Tutorials and Eventing => RPG Maker General => Tutorials Database => Topic started by: Snailer on March 04, 2007, 06:01:04 PM

Title: [TUT] Making groundspikes..
Post by: Snailer on March 04, 2007, 06:01:04 PM
This is my first tut  ;D Weeee !!!

Here I will try to teach you how to make spikes that will be rejected with button/switch  so it will go back into the ground..


First of all you need to know how switches are used so it will be a bit easier if you dont know how they work maybe this explains it a bit...

Now using the event layer make a Switch sprite so it will be easy for you to see where the button is  :)
just like in image 1 :D
Also make the spikes that will come out of the ground
Image 1
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg239.imageshack.us%2Fimg239%2F1734%2F35230256le8.jpg&hash=14716a231cf4d79bf30a0d70de481bd908737272)

Now we want it to hurt the player if he/she touches it, not ? do something like this..

Image 2
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg48.imageshack.us%2Fimg48%2F6104%2F76416089ug4.jpg&hash=c061da0a0b86712bdff76b0b2569dc0d79182bc5)
First, make something like a flash screen so the player notices something like " Omy GAWD ! I CANT TOUCH THAT ! "
and make it jump away or something.. ( If you dont want that put through ON to OFF so you wont need the jump, I used it because i liked this more. )


Okay lets continue..
Go back to the switch and we will start making the scene of the spikes that will retreat..  :D
Image 3
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg131.imageshack.us%2Fimg131%2F4593%2F20580468ai3.jpg&hash=0c2dd3f4b830943a6eacfdb737d459fd077ab1a4)
As you can see it turns a switch on the name wont matter but its the number it has..
Also use something like a sound to give it some life :D..

Now make a new page at the Switch event and put conditions to switch That was turned on at the first page..
like this.
 
Image 4
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg337.imageshack.us%2Fimg337%2F7770%2F69818900lr4.jpg&hash=42ac103f27d063ca999e05373da154ebbaecc7e6)

Now we have made the switch to turn everything on

Go back to the spikes event and make a new page here too.
Set the Condition also to the switch that was turned on in image 3.
Now we probably want it to move so it looks very nice wont we ?
So make a move event command that will change graphics and put a pause in-between every one of em so it wont skip so fast as u can see, also an wait + an SELF SWITCH ! this is important so you wont have to make the same event over and over but you can just copy paste it.
Image 5
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg237.imageshack.us%2Fimg237%2F653%2F35688923db2.jpg&hash=c555643f010e7f58be71a1da9ee8f5b03d414710)


Now we just make an Page 3 and with that put it Through, Condition to If SELF SWITCH A = On, and of course the sprite 

Image 6
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg401.imageshack.us%2Fimg401%2F2342%2F13123711du4.jpg&hash=45e1f2ab2f38e09e2c8b28d8b84b2e2bd994320c)


Hope this helps you and tell me if I forgot something ;D
Have a nice day  :D.

I included a demo if you are not that smart and wanna see it again ( Just kidding )
Title: Re: [TUT] Making groundspikes..
Post by: Fencerkid161 on March 04, 2007, 07:13:44 PM
Very good tut, it will help out a lot of people.
Title: Re: [TUT] Making groundspikes..
Post by: :) on March 04, 2007, 07:14:17 PM
may I linky this in tut index?  :o
Title: Re: [TUT] Making groundspikes..
Post by: Snailer on March 04, 2007, 07:17:10 PM
Very good tut, it will help out a lot of people.

Thanks :D

may I linky this in tut index?  :o

Sure :D

Anymore feedback :) ?
Title: Re: [TUT] Making groundspikes..
Post by: Snailer on March 14, 2007, 01:31:01 PM
Bump my tut
Title: Re: [TUT] Making groundspikes..
Post by: Blizzard on March 14, 2007, 04:23:16 PM
Lol, I just made an autotile out of it. Decreases lag a lot. ^__^
Title: Re: [TUT] Making groundspikes..
Post by: Snailer on March 14, 2007, 08:58:51 PM
A autotile of this ?
How you mean
Title: Re: [TUT] Making groundspikes..
Post by: Blizzard on March 14, 2007, 09:12:40 PM
Setting it's terrain tag to a number different than zero and just using a parallel process that checks the player's terrain tag should work out. I mean this is the most efficient way of making spike traps where you get hurt if you walk over.
Title: Re: [TUT] Making groundspikes..
Post by: Snailer on March 14, 2007, 09:14:10 PM
 :'(

So no use to my first tut than
Im NEVER GONNA MAKE ONE ANYMORE
Title: Re: [TUT] Making groundspikes..
Post by: Blizzard on March 14, 2007, 09:17:17 PM
Lol, no. This is a great tute if you want to make "OMG! That switch triggered (a) spike trap(s)! I AM SO DEAD!!!!11oneone" (^__^)
But if you want a "VISIBLE damaging floor", I'd suggest my method.
Title: Re: [TUT] Making groundspikes..
Post by: Snailer on March 14, 2007, 09:18:24 PM
uhm..
OKay whatever
VOTE FOR MY TUT PEOPLE.. ( SHH to blizz )
Title: Re: [TUT] Making groundspikes..
Post by: Blizzard on March 14, 2007, 09:20:01 PM
Just lol! I like your tute, really. You could actually add that stuff from me and enhance it. But you should try it out yourself first, because it's not enough to only check the player's terrain tag. ;)
Title: Re: [TUT] Making groundspikes..
Post by: TheCro on March 15, 2007, 01:13:01 AM
I see that the program I'm using doesn't have "Through", But in the same spot I have "Phasing". Are these two terms synonyms?
Title: Re: [TUT] Making groundspikes..
Post by: Arkhan on March 15, 2007, 07:10:57 AM
Phasing = through, they're used interchangably.

Question: I'm using a caterpillar script. When I walk over the floorspikes, the party leader jumps back, but if he walks away, everyone else also jumps and it looks quite silly. I'm using the Fukuyama's script... anyone got an idea?
Title: Re: [TUT] Making groundspikes..
Post by: Snailer on March 15, 2007, 02:21:48 PM
I see that the program I'm using doesn't have "Through", But in the same spot I have "Phasing". Are these two terms synonyms?

Its just the same

Phasing = through, they're used interchangably.

Question: I'm using a caterpillar script. When I walk over the floorspikes, the party leader jumps back, but if he walks away, everyone else also jumps and it looks quite silly. I'm using the Fukuyama's script... anyone got an idea?

And I dont have a clue why that happens.
Maybe you can just do it so you wont jump but only take damage but that looks silly though
Title: Re: [TUT] Making groundspikes..
Post by: crunkbanker on March 19, 2007, 06:19:09 PM
I like your tut! I do like to use scripts for stuff too, but sometimes it is nice to have something like this to keep it simple. Espcially for all the people who don't understand scripts. I myself am still learning so its nice to have options. THANKS again. and you better not stop making tuts, b/c where would newbies be w/o nice people like you who tell us how to do cool stuff we would never figure out on our own. ;8
Title: Re: [TUT] Making groundspikes..
Post by: Snailer on March 19, 2007, 06:21:16 PM
 ;D
Thanks for the compliments
But I ran out of ideas for a tut already XD
Ever need to know something ill be happy to tut it
.
UPDATE TO THE TUT !

Changed my type error Witches to switches