- Joined
- Feb 23, 2016
- Messages
- 2
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
Hello everybody I was wandering if anyone could help with this. I want to make an interesting way of learning spells in my game. If you have played the Harry Potter PC games, then I want a similar idea where the person draws a shape/pattern symbol of spell on screen and the spell would be cast.
Basically it would look something like:
If player followed the shape with mouse cursor.
Then in animation appear showing the shape lit up by a spark of spell.
Then the teacher would say well done.
If the player did not follow with mouse cursor accurately along the shape either as they went off the screen or the mouse was not in the area or segment.
Then an animation would appear showing a red light.
Then the player would be prompted to try the spell again following the cursor carefully.
So in a nutshell what I want to do so is make a shape appear on the screen.
This shape would, have to be redrawn by the game player following it across the screen with the mouse.
So I am guessing I need some way of tracking mouse movement, to maybe find coordinates of the movement or have a system where the picture would be referenced in some way. Then the player mouse movement is mapped against this region, to check if this reference is fully met or not.
If the regions are the same then success. Otherwise keep trying.
By doing some browsing on internet I found a little way of doing it through JavaScript, but please I hope not to use it as I am not good with JavaScript and have no idea how I can integrate this into RPG MV with JavaScript system, as I am sure there would be a restriction of commands that RPG MV Game Maker can accept without plugins. Can anyone help me find a solution to this I am truly stumped?
Thanks
Basically it would look something like:
If player followed the shape with mouse cursor.
Then in animation appear showing the shape lit up by a spark of spell.
Then the teacher would say well done.
If the player did not follow with mouse cursor accurately along the shape either as they went off the screen or the mouse was not in the area or segment.
Then an animation would appear showing a red light.
Then the player would be prompted to try the spell again following the cursor carefully.
So in a nutshell what I want to do so is make a shape appear on the screen.
This shape would, have to be redrawn by the game player following it across the screen with the mouse.
So I am guessing I need some way of tracking mouse movement, to maybe find coordinates of the movement or have a system where the picture would be referenced in some way. Then the player mouse movement is mapped against this region, to check if this reference is fully met or not.
If the regions are the same then success. Otherwise keep trying.
By doing some browsing on internet I found a little way of doing it through JavaScript, but please I hope not to use it as I am not good with JavaScript and have no idea how I can integrate this into RPG MV with JavaScript system, as I am sure there would be a restriction of commands that RPG MV Game Maker can accept without plugins. Can anyone help me find a solution to this I am truly stumped?
Thanks
