Rmxp actor graphic help
#1
Posted 07 February 2012 - 10:13 PM
Just wondering if anyone could help me with a couple of problems im running into
with my game. Basically what it is, my player starts out in water, portrayed by his swimming graphic,
and ive made an event where as soon as he steps out of the water his graphic changes to a walking
actor, but i cant seem to get it where if i walk back into the water his graphic changes back to swimming.
I hope im explaining this ok. The other problem is i have an npc on the map which i can talk to, is there any way of not being able to speak to him a 2nd time without his graphic dissapearing ? Ive made the the event where we have the conversation but the only thing i can seem to find to stop the event once weve had the convo is ERASE EVENT, but then that makes the npc dissapear ?
Hope someone can help me, Thanks in advance =)
#2
Posted 07 February 2012 - 10:31 PM
#3
Posted 07 February 2012 - 10:39 PM
#4
Posted 07 February 2012 - 10:45 PM
#5
Posted 07 February 2012 - 10:49 PM
#6
Posted 07 February 2012 - 10:50 PM
Quote
You have to use switches (etc etc) to do that, so erase event is a bad idea here. Would a screenshot help? Also, I reccomend playing the RMVX School game, it helps with XP and VX.
#7
Posted 07 February 2012 - 10:59 PM
p.s a screenshot would be a massive help if thats okay ?
Thanks
Attached Files
Edited by Dannyboi1989, 07 February 2012 - 11:05 PM.
#8
Posted 08 February 2012 - 01:27 AM
Just add the word -SWIM to the end of the characters graphic file name and there you go.
#9
Posted 08 February 2012 - 02:33 AM
and do i just literally change the actors graphic name to -SWIM at the end and thats it, it will automatically change from walking
actor to swimming actor everytime i step in and out of the water ? how does it know what actor graphic to change to once i step out
of the water ? do i have to change the walking actor graphics name aswell ?
Thanks a lot for this really appreciate it =)
#10
Posted 08 February 2012 - 02:50 AM
As for how it knows you are swimming, it appears to use terrain tags to tell what type of ground the character is standing on.
To set a certain tile to a specific terrain tag you must go to the tilesets tab in the database, and then select the terrain tag button on the right side. You should now see a bunch of numbers(most likely all zero) over each tile on that tile set. By left click you can increase the number and right clicking will decrease it. You can set the tiles to any number from 0 to 7.
I believe the script is set to run off of number 4.
Once your terrain tag is set to the correct number for all desired maps with water tiles the script should work perfectly.
Hope that helps.
-Cheers,
Jon Bon
#11
Posted 08 February 2012 - 02:53 AM
Second, for some reason this forum puts the whole script into one line. So what you do is first put it into Microsoft Word and then copy and paste it from there into the Script Database.
Third, Here's a example:
001-Fighter01 (Original RMXP file)
001-Fighter01-SWIM (Custom swim file)
Once you step in water your character will switch into the swim file.
Fourth, I forgot to tell you that you need to change the terrain Tag in the tileset Database to 3 or 4. Just put it over the water tile that you want your character to swim.
#12
Posted 08 February 2012 - 02:57 AM
#14
Posted 08 February 2012 - 03:05 AM
#15
Posted 08 February 2012 - 05:03 AM
#16
Posted 08 February 2012 - 07:12 PM
#17
Posted 08 February 2012 - 08:10 PM
#18
Posted 08 February 2012 - 08:12 PM
#19
Posted 08 February 2012 - 09:07 PM

NOTES: For the above picture, you can see that I underlined something in red. This is a very important option that will help you in the long run of setting up events. "Control self switch" is an option you can find in the events tabs, and has some multiple selections: A, B, C (etc). Now, in my opinion and I'm not an expert at it, is to start with A if you have a NPC doing multiple things.
Anyways, what you want to do is make your event and the NPC's actions or text after you select a sprite/graphic for it to work. Next, if you want it to be activated by action button, select it or another "Trigger" you want as the way to start the event. Once you have done that, head to the left in the empty field and fill in your events/text. Next, put a Control Self Switch in AFTER all the other events, text etc etc.
Now create a NEW PAGE on that event. You should see a completely blank page now.

NOTES: As you can see in the image above, I boxed one thing and highlighted another. Let us take care of the red field first. Find the graphic you selected on the first page (unless the event is your actor morphing into a beast etc etc then select THAT sprite here) and then CHECK SELF CONTROL SWITCH and find the alphabet letter you select on the first page (should be A, especially if you followed the images) and then hit "APPLY".
Now go to the empty field text and start up your events, text, music or what you want the character to do. Now hit "APPLY" once more, and test the event.
The first time you talk to the NPC, they should say something. And then when you talk to the NPC the second time, they say something completely different and no longer offer the first text selection. And the graphic should still be there.
Does that work?
Edited by CrimsonInferno, 08 February 2012 - 09:12 PM.
#20
Posted 08 February 2012 - 11:57 PM
#21
Posted 09 February 2012 - 12:59 AM
http://www.rpgmakerv...?showtopic=5704
0 user(s) are reading this topic
members, guests, anonymous users













