Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Click here to join us on IRC (#charas on irc.freenode.net)!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Steppings sounds or anything you want when you walk - for dummies
« previous
next »
Print
Pages: [
1
]
Author
Topic: Steppings sounds or anything you want when you walk - for dummies (Read 5128 times)
Supersplite
Initiate
Posts: 3
Steppings sounds or anything you want when you walk - for dummies
«
on:
February 11, 2016, 05:31:59 PM »
"HARD" WAY:
First of all, if you want stepping sounds everywhere, create an common event with parallel process, but if you want that one
map is with step and other not, create an event on the map and set to to parallel process it.
1.Create a label(any number).
2.Create a loop.
3.Create variables (e.g.):
[0001:playerx]
[0002:playery]
[0003:mapid]
[0004:terrainid]
[0005:playerx_axis]
[0006:playery_axis]
[0007:mapid_axis]
4.create an "memorize place" , with 0001 is X, 0002 is Y, 0003 is the MapID.
5.put an wait of 0.0 frames.(idk why, but put it.)
6.create agin an memorize place, but now 0005 is the X, 0006 is the Y and 0007 is the mapID.
7.now create an branch/fork to:0003 is NOT equal to 0007, go to label (number of your label)
8.branch:0001 NOT equal to 0005, break loop.
9.branch:0002 NOT equal to 0006, brak loop.
10.now thats all for the loop, now for the orther part:
11.get terrain id:X to be 0005, Y to be 0006 and TerrainID to be 0004.
12.branch:if 0001 NOT equal to 0005, (now put anything you want when the chara moves.)
13.branch:if 0002 NOT equal to 0006, (now put anything you want when the chara moves.)
thats it.
mine worked like this:
<>Label#1
<>Loop
<>Memorize Place:Map:[0003], X:[0001], Y:[0002]
<>Wait 0.0
<>Memorize Place:Map:[0007], X:[0005], Y:[0006]
<>If Var:(0003:mapid) Var[0007] (=!)
<>Goto Label#1
<>
:End Case
<>If Var:(0001:playerx) Var[0005] (=!)
<>Break
:End Case
<>If Var:(0002:playery) Var[0006] (=!)
<>Break
:End Case
<>
:End Loop
<>Get Terrain ID: (V[0005],V[0006]) Var:[0004:terrainid]
<>If Var:(0001:playerx) Var[0005] (=!)
<>If Var:(0004:terrainid) 1
<>Play Sound Effect:grass
:End Case
<>
:End Case
<>If Var:(0002:playery) Var[0006] (=!)
<>If Var:(0004:terrainid) 1
<>Play Sound Effect:grass
:End Case
<>
:End Case
^^^^^^
IIIIII
This way i done, every tile with terrain with id of 1, an sound effect will open, but you can place anything you want , like
every step an annoying message appears...
so yeah
P.s: i think the commands i copied may be wrong...
P.P.s:Worked in don miguel's rpg maker2000 and rpgmaker2003.
EASY WAY(for 2003, 2000 is out of easiness)
go to terrain page and select the terrain you want that play the sound, in the top-right you will find and sound effect thing to place sound effects, place the sound and the tile with the terrain id will play the sound(this way ONLY for SEs).
[i prefer the "hard" way because a place there is stepping sounds and the other is gone, like making an "creepypasta" game, one time something will stop, so yeah
]
EDIT:the easy one can also make step here no step there.
«
Last Edit: February 11, 2016, 05:36:07 PM by Supersplite
»
Logged
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Steppings sounds or anything you want when you walk - for dummies