The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Zarayna on April 25, 2011, 08:24:25 PM

Title: A few problems I'm having.
Post by: Zarayna on April 25, 2011, 08:24:25 PM
Okay, in my current game, an attempt to create an arcade game with RPGM2003, I'm having a few problems.

The first:

I have an in game battle system, and I was trying to make it so the hero could fire a arrow that goes through multiple enemies. The original event system went like this: conditional branch if (The variables calculating the X and Y coordinates of both the enemy and the arrow) are equal. If that is matched, the enemy is flashed red, a sound effect plays, and the variable containing the enemy's HP is increased. Once all that happens, the switch that activates the arrow firing is turned off.

To make the arrow go through multiple enemies, I simply removed the switch turning on, so that instead of disappearing after hitting an enemy, it disappears only after having moved eight squares.

However, instead of simply hitting every enemy it touches, the arrow will only hit one enemy, and pass harmlessly through any others. At it's best (usually when I have all ten enemies lined up in a row) it hits two.

Next, I'm also working on a Custom Menu system for this same game. Using pictures to display the menu in one corner. For items, I'm trying to make this happen.

If enter is pressed when Items is selected, the current menu picture vanishes, and a new picture appears. Then, using conditional branches to tell if the items are possessed,a picture of each different item held is displayed.

However, one of two things happens.

1) the games freezes, and I'm forced to close it with ctrl+alt+del.
2) After making the items menu a separate event, activated upon being called, either I set said event as auto start (with a switch activating it which is turned on by selecting item on the menu and pressing enter) and the game crashes, or I set it on call, and the hero can move around, and the main menu can be activated again.

So, any ideas how to fix this? Should i go into any more detail on my event systems?

Thanks
~Zarayna~