Previously I was using multi-touch joystick for movement. I came back to my game and started getting crashes. While trying to figure it out I tried other behaviors. Bounce and even Health point Behavior. Having the behavior itself doesn't crash it, if you trigger its functions on an event it does. I tried clearing cache and data. Erasing extensions and reinstalling them. Uninstall gdevelop and reinstall. I cant even export with behaviors added. Does anyone else have this problem?
u/Cautious_Result140
▲ 0 r/gdevelop
u/Cautious_Result140 — 9 days ago
▲ 3 r/gdevelop
If Trying to make a mining game. Im Trying to create my 16 x 16 grid with chunks for ore placement rather that just randomly placing ore on every grid. I tried to use chatgpt to help. It speaking in pseudocode and confusing me.
It gives me this as first thing to do
Repeat 16
→ Y = RepeatIndex()
Repeat 16
→ X = RepeatIndex()
→ chunkX = floor(X / 4)
→ chunkY = floor(Y / 4)
→ type = ChunkTypes[chunkX][chunkY]
It says to create a variable for X and Y
I understand In the code that every repeat, X any Y value would equal the current iteration.
If I go to action -> change variable value and put Y for variable. SetTo = and Value RepeatIndex() i get "cant find expression RepeatIndex()"
How do I assign the current iteration number to X And Y variable?
u/Cautious_Result140 — 12 days ago