- Joined
- Mar 13, 2012
- Messages
- 185
- Reaction score
- 35
- First Language
- English
- Primarily Uses
- RMMV
Hi All,
I need help checking the Region ID of an item I have created using Pictures and Events.
Basically, I've created a fully functional Boomerang within a Common Event that activates whenever the player presses the appropriate button.
The event goes:
1. Check Player X and Y position on the Screen
2. Check which direction player is facing
3. Change Player X and Y accordingly based on where the boomerang is to start its animation from
4. Place a picture of one of the animation frames of the boomerang and place it at the altered Player X & Y
5. Change Player X and Y again to nudge the boomerang a half a tile over
6. Replace the picture with a different animation frame
7. Repeat steps 5 & 6 re-adjusting the X and Y where they previously were to move the boomerang back to the player.
8. Erase the picture when the boomerang appears back at the player's position.
What I can't figure out is how to tell what region ID the Boomerang picture/Coordinates are currently over, the aim being that if the player fire's the boomerang and it hits the Region ID, the event ends and erases the images prematurely. For example, so they cannot throw the boomerang through a wall or something.
Any help would be greatly appreciated!
I need help checking the Region ID of an item I have created using Pictures and Events.
Basically, I've created a fully functional Boomerang within a Common Event that activates whenever the player presses the appropriate button.
The event goes:
1. Check Player X and Y position on the Screen
2. Check which direction player is facing
3. Change Player X and Y accordingly based on where the boomerang is to start its animation from
4. Place a picture of one of the animation frames of the boomerang and place it at the altered Player X & Y
5. Change Player X and Y again to nudge the boomerang a half a tile over
6. Replace the picture with a different animation frame
7. Repeat steps 5 & 6 re-adjusting the X and Y where they previously were to move the boomerang back to the player.
8. Erase the picture when the boomerang appears back at the player's position.
What I can't figure out is how to tell what region ID the Boomerang picture/Coordinates are currently over, the aim being that if the player fire's the boomerang and it hits the Region ID, the event ends and erases the images prematurely. For example, so they cannot throw the boomerang through a wall or something.
Any help would be greatly appreciated!
