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
> Looping battle animations on the map., Worked well in RM2K3, I think.
Wonderjosh
post Feb 25 2012, 12:50 PM
Post #1


Level 3
Group Icon

Group: Member
Posts: 33
Type: Artist
RM Skill: Undisclosed




I remember back in the day in RM2K3, I think it was, I had a little project going on where on the world map, I had a non-graphical event a tile just before a little town graphic where when the player touched it, it played a 'battle animation' that in only one frame displayed the name of the town just ahead (similar to Chrono Trigger, for those who know). Maybe it was only unique to RM2K3, but the animation would loop itself as long as the player was on the event tile, showing the name of the town as a static image. Once the player moved off the event tile, the animation would end as it should.

This seems to be lost in RMXP! The animation only plays once and then the player has to move off and back on to the event tile for the animation to play again. I did try putting it in an actual loop function in the event, but that just froze up the game.

I'm not asking for a script or anything, but just wondering if anyone has any ideas on how to duplicate this in RMXP? Or if anyone knows why it's changed. Just a general discussion topic. I'm curious, haha.

This post has been edited by Wonderjosh: Feb 25 2012, 12:51 PM
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Feb 25 2012, 02:10 PM
Post #2


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 916
Type: Scripter
RM Skill: Skilled
Rev Points: 120




There's a wayout:

map animation event [parallel process]

***Variable[1] = event_x
***Variable[2] = event_y
***Variable[1] -= player_x
***Variable[2] -= player_y

>Cond_branch: if Variable[1] == 0
>>Cond_branch: if Variable[2] == 0
***animation(this event) [map anime]
>>branch end
>branch end

end event page

I hope to have been clear enough...

Jens

This post has been edited by Jens of Zanicuud: Feb 25 2012, 02:10 PM


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   
Wonderjosh
post Feb 25 2012, 08:42 PM
Post #3


Level 3
Group Icon

Group: Member
Posts: 33
Type: Artist
RM Skill: Undisclosed




Hey yeah that works! It lags up the game when the player moves onto the event for a second or two, but other than that, it works! Thanks!
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Feb 26 2012, 01:03 AM
Post #4


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 916
Type: Scripter
RM Skill: Skilled
Rev Points: 120




Try putting a wait 1 frame after the animation. This could reduce lag...

Jens

This post has been edited by Jens of Zanicuud: Feb 26 2012, 01:06 AM


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   
Wonderjosh
post Feb 26 2012, 08:49 PM
Post #5


Level 3
Group Icon

Group: Member
Posts: 33
Type: Artist
RM Skill: Undisclosed




Yeah I had thought of that, but the animation didn't show up at all when I threw that in there. Before or after the "Show Animation". HOWEVER, I had at first set the event and player's X an Y to the Map X and Map Y, but changing it to Screen X and Screen Y fixed it up pretty good. There's still a minor lag for a split second when moving onto the even, but it's very minimal and not a massive lag jump as before.

Thanks!
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: 19th June 2013 - 10:50 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker