- Joined
- Apr 1, 2014
- Messages
- 5
- Reaction score
- 0
- First Language
- English
- Primarily Uses
I'll just like to let you all know before I write this post that I know next to nothing about programming - I'm building my first game just to teach myself.
I'm trying to get an image to pop up for half a second when either an enemy or a playable character lands a critical hit. I'm trying to do this by making the image appear and then disappear as a common event using this code:
@>Show Picture: 1, 'image', Center (0,0), (100%,100%), 255, Normal@>Wait: 30 frame(s)@>Erase Picture: 1 ..and then I'm trying to call the common event with this code in Window_BattleLog (specifically, the part bolded)
#-------------------------------------------------------------------------- # * Display Critical Hit #-------------------------------------------------------------------------- def display_critical(target, item) if target.result.critical $game_temp.common_event_id = 1 text = target.actor? ? Vocab::CriticalToActor : Vocab::CriticalToEnemy add_text(text) wait end end'1' is what I named my common event, is that the same thing as the event ID? Is this even the problem? Sorry if this is a noobish question, as I said, I'm not very experienced with this
I'm trying to get an image to pop up for half a second when either an enemy or a playable character lands a critical hit. I'm trying to do this by making the image appear and then disappear as a common event using this code:
@>Show Picture: 1, 'image', Center (0,0), (100%,100%), 255, Normal@>Wait: 30 frame(s)@>Erase Picture: 1 ..and then I'm trying to call the common event with this code in Window_BattleLog (specifically, the part bolded)
#-------------------------------------------------------------------------- # * Display Critical Hit #-------------------------------------------------------------------------- def display_critical(target, item) if target.result.critical $game_temp.common_event_id = 1 text = target.actor? ? Vocab::CriticalToActor : Vocab::CriticalToEnemy add_text(text) wait end end'1' is what I named my common event, is that the same thing as the event ID? Is this even the problem? Sorry if this is a noobish question, as I said, I'm not very experienced with this

