Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> push items on screen
Bigace
post Dec 31 2009, 04:47 PM
Post #1


The King of Spades
Group Icon

Group: Revolutionary
Posts: 400
Type: Developer
RM Skill: Intermediate




I need an event where you can push bolders events around on the screen. I was trying to create a look safe and you need to push the boulders in the right spot for the next area to open up. Anyone know how to do this.


__________________________



Use Dropbox to upload your files. Much simpler than other upload sites, you can simply place a folder on your desktop that will sync with your DropBox account.

QUOTE ('Exiled One')
"If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others."
Go to the top of the page
 
+Quote Post
   
Scriptless
post Dec 31 2009, 05:13 PM
Post #2


Level 1337
Group Icon

Group: Banned
Posts: 1,664
Type: Writer
RM Skill: Intermediate




Make an event, choose how you want it to look like. (ex:rock) set the event to player touch. Then put in move route, and put in move away from player. and click on skip if cannot move, n' there ya go.


__________________________
I'm not dead. Thanks.
Go to the top of the page
 
+Quote Post
   
Bigace
post Dec 31 2009, 06:07 PM
Post #3


The King of Spades
Group Icon

Group: Revolutionary
Posts: 400
Type: Developer
RM Skill: Intermediate




QUOTE (Scriptless @ Dec 31 2009, 08:13 PM) *
Make an event, choose how you want it to look like. (ex:rock) set the event to player touch. Then put in move route, and put in move away from player. and click on skip if cannot move, n' there ya go.


Okay, cool it works. Okay now I need to figure out how to drag it away from the wall so the player doesn't get stuck. I probably should of added that to the OP.


__________________________



Use Dropbox to upload your files. Much simpler than other upload sites, you can simply place a folder on your desktop that will sync with your DropBox account.

QUOTE ('Exiled One')
"If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others."
Go to the top of the page
 
+Quote Post
   
Unka Josh
post Dec 31 2009, 06:16 PM
Post #4


Level 32
Group Icon

Group: Revolutionary
Posts: 771
Type: Developer
RM Skill: Skilled




Of course, that won't tell you when the boulder is on the right spot.

For that, you have two choices:

1) Terrain Tags on the key square (Since this is RMXP), and a Parallel Process event checking the Terrain Tag, or

2) A Parallel Process event checking the X and Y of the Boulder, and comparing it to fixed coordinates.

QUOTE (Bigace @ Dec 31 2009, 06:07 PM) *
QUOTE (Scriptless @ Dec 31 2009, 08:13 PM) *
Make an event, choose how you want it to look like. (ex:rock) set the event to player touch. Then put in move route, and put in move away from player. and click on skip if cannot move, n' there ya go.


Okay, cool it works. Okay now I need to figure out how to drag it away from the wall so the player doesn't get stuck. I probably should of added that to the OP.


Do you want it to be pull-able by the player, or resetable? The latter is much, much easier to code... and leaving and re-entering the room will do it automatically, so you don't need to worry about that.
Go to the top of the page
 
+Quote Post
   
Redd
post Dec 31 2009, 06:35 PM
Post #5


:<
Group Icon

Group: Revolutionary
Posts: 2,312
Type: Developer
RM Skill: Advanced




Just like in Pokemon, if you leave the room and go back it will all be perfectly good again smile.gif Just make an escape rope or a Panic! button to use if you get stuck somewhere that transfers you out of the room.


__________________________
Go to the top of the page
 
+Quote Post
   
Bigace
post Jan 1 2010, 10:00 AM
Post #6


The King of Spades
Group Icon

Group: Revolutionary
Posts: 400
Type: Developer
RM Skill: Intermediate




QUOTE (Unka Josh @ Dec 31 2009, 09:16 PM) *
Of course, that won't tell you when the boulder is on the right spot.

For that, you have two choices:

1) Terrain Tags on the key square (Since this is RMXP), and a Parallel Process event checking the Terrain Tag, or

2) A Parallel Process event checking the X and Y of the Boulder, and comparing it to fixed coordinates.

QUOTE (Bigace @ Dec 31 2009, 06:07 PM) *
QUOTE (Scriptless @ Dec 31 2009, 08:13 PM) *
Make an event, choose how you want it to look like. (ex:rock) set the event to player touch. Then put in move route, and put in move away from player. and click on skip if cannot move, n' there ya go.


Okay, cool it works. Okay now I need to figure out how to drag it away from the wall so the player doesn't get stuck. I probably should of added that to the OP.


Do you want it to be pull-able by the player, or resetable? The latter is much, much easier to code... and leaving and re-entering the room will do it automatically, so you don't need to worry about that.


Sorry I didn't reply back earlier, I was playing assassin Creed 2, okay I try that in a couple of moments. And I guess we can go with the latter if that one is easier then sure.

Edit: Is there a way to make reset only the boulders location, instead of the whole map. Like click button 'B', and the screen flashes and all the boulders that you were pushing are reset.
QUOTE (Redd @ Dec 31 2009, 09:35 PM) *
Just like in Pokemon, if you leave the room and go back it will all be perfectly good again smile.gif Just make an escape rope or a Panic! button to use if you get stuck somewhere that transfers you out of the room.

Yep, pokemon like in the good ol'days.


__________________________



Use Dropbox to upload your files. Much simpler than other upload sites, you can simply place a folder on your desktop that will sync with your DropBox account.

QUOTE ('Exiled One')
"If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others."
Go to the top of the page
 
+Quote Post
   
Redd
post Jan 1 2010, 01:56 PM
Post #7


:<
Group Icon

Group: Revolutionary
Posts: 2,312
Type: Developer
RM Skill: Advanced




Yeah I could do that probably. It would require a bit of scripting, so give me just a bit.

EDIT: If you reset the rocks, then it would just change the rocks, and the player could get into some pretty bad trouble, or if used usefully, you could get through the pushing a LOT easier since the rock that was just in front of you is now gone.

Here's what your PARALLEL PROCESS event should look like:
CODE
@>Conditional Branch: The A button is being pressed
  @>Transfer Player [your map and position]
  @>
  :   Else
  @>
:    Branch End
@>


There you go.


__________________________
Go to the top of the page
 
+Quote Post
   
Unka Josh
post Jan 1 2010, 02:04 PM
Post #8


Level 32
Group Icon

Group: Revolutionary
Posts: 771
Type: Developer
RM Skill: Skilled




It wouldn't require scripting. Just making note of the original locations of the boulders.

Then, if you go to your "Reset" switch/Common Event/Whatever, use Set Event Location to move all of the boulders back to the square that they were originally on. Not hard or complicated.
Go to the top of the page
 
+Quote Post
   
Redd
post Jan 1 2010, 02:11 PM
Post #9


:<
Group Icon

Group: Revolutionary
Posts: 2,312
Type: Developer
RM Skill: Advanced




Oh lol I was thinking using something like $map.reset or something along those lines. I'm not saying that's a real thing, I just know there's something like that to reset everything on the map except the player.


__________________________
Go to the top of the page
 
+Quote Post
   
Bigace
post Jan 2 2010, 12:53 PM
Post #10


The King of Spades
Group Icon

Group: Revolutionary
Posts: 400
Type: Developer
RM Skill: Intermediate




Thanks for the feedback guys, Iet me finish mapping the dungeon and I'll post back if any problems occure.


__________________________



Use Dropbox to upload your files. Much simpler than other upload sites, you can simply place a folder on your desktop that will sync with your DropBox account.

QUOTE ('Exiled One')
"If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others."
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 12:12 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker