Hi there,
I’ve recently downloaded and started using GDevelop 5 and for a beginner - I find it quite good
A little background on my question. Im creating a test board game, in which the player moves in one direction only, but the “path” of the player makes a few turns around the boards. The movement is determined by the result of the dice, not by any user input.
The correct progression of the events should be as follows:
- player clicks a button that rolls the dice.
- the animation of the dice and the result should be the same (i.e. if the dice displays 3 and 5, the result variable should be 8).
- Once the result is determined, await 2 secs, then automatically move the player object the said number of times
Example of the player movement can be seen in the below picture (excuse the quality, but it was quickly scetched up):
.So, my questions:
a) how can i make the animation of the dice to be equal to the actual result of the dice and where do I store the result (scene variable, global variable, any other variable) ?
b) how to calculate the position of the player and then add the result from the dice to the new position of the player (Effectively move the player as per dice result) ?
c) once player reaches the end of the row, how do i make him go around?
If details are not enough, please kindly let me know so that i can answer any questions that might arise.
In the meantime I will continue searching and testing, and if i figure this out by myself, I will update with answer