Try differentiate between movement area and weapon range. Melee weapon should behave similarly to unit movement plus with it's extended reach. Ranged weapon should just able to cover any terrain within range.
See at my example; dropbox.com/s/mcd4qp16mp07lce/path_orient3.capx
There is a square overlay with tiny opacity when something blocked unit way.
I didn't remove them as a visual cue for what full range looks like. So my method is define unit range then do flood-fill for possible movement area.
I suspect the 'wait' delay at event 30 might cause missing calculation in how total candy should drops. Try disable or remove it first.
Update:
- add auto spawn
- add goals as win condition
That's really sick! Cool 3D dice you have there R0J0. Utilizing mesh distort is clever solution within math behind it.
Yes I am still struggling with storing how many times the letter has already taken in correct prioritize order. I insist to use array for that part but probably need to go back using Dictionary which is relatively easy to calling string. The sorting part done by listing available alphabet into a variable.
Just want to share little fun with physics. It's a pop match gam.
Have a blast: https://dl.orangedox.com/OGM63EnGP539HceF53
The file will be a basis for future paid template so I share it while in initial state.
It's position, it's instance variable value, it's unique ID, it's indeX ID, it's properties such as angle and many other things can be act as filter. It's all about picking object instance that specifiy in condition.
Still research with permutation thing if this kind of thing could be applicable in your case.
If that the case use Buildbox as your game engine. Try to reach it's community to help you along the way.
From my understanding (example1) duplicate has maximum number allowed based on first array as reference. So the third "b" in second array no longer valid since previous 2 "b" already occupied in correct order of existance thus return value '3'.
Old example but with give a good start how to animate a graph: dropbox.com/s/vx16gdzap0nt5bs/grafik_bar.capx
I think I have made an example but forgot where do I put it. Anyway asssume that we want to fling object like Angry Birds. At least we need Touch object and Physics behavior on a sprite. Touch will determine aim direction while physics will do the rest.
Please pick this simple demo: https://www.dropbox.com/s/a1yzmyusayn2omi/fling_physics_impulse.capx?dl=0
Rarely using it but I'll reach you at Discord. Invitation sent.
Develop games in your browser. Powerful, performant & highly capable.
Probably you need to change the direction to 4 directions. Also set angle to No rather than using every tick.
I can give a hand to your specific swing rope. It just old example demo-ing one of many possible way to hook rope. Really it took time to modify the example tailored to your expectation. Feel free to modify it or just ignore it.