Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hello Scirra forums.
I'm currently making my own game for the first time and I'm not very well-versed in construct 2 yet. I've figured out how to make a dice roll but I'm unsure of how to make it move a certain amount of steps. I need help in making so that when a dice is rolled the player can move any amount of up/down/left/right a number of times equal to the dice roll.
Thanks for the help.
One possible general approach:
Create a variable - movesRemaining
Set movesRemaining to dice roll result
Upon moving, if movesRemaining is not 0, subtract 1 from movesRemaining
Are there move restrictions (obstacles.. etc) in play ?
oosyrag: okay thx for the help, I'll try it out.
99Instances2Go: rather than obstacle that stop the players from moving ahead there might be mini games triggered upon landing on certain tiles.
It is a different approach, but cant approach without info. It is an illusion to expect general solutions.
korbaach: Thx for the help!! It's very close to what I'm looking for except that I hope the player is able to choose the direction it is moving in, in case of a cross road. Anyways, I've tried re-creating your example from scratch and so far managed to work except for the fact that it wouldn't turn at the corners. I've double check the event sheet of mine and your sample and it looks the same. Is there something I should double check in the event sheet to ensure that it turns in the corners??
(edit: sry, its okay. I've found my problem. Thx for the help!!)
try this one:
Develop games in your browser. Powerful, performant & highly capable.
korbaach: That's exactly what I'm looking for! Thx so much for your help!!