To reproduce the anomaly on the collisions.
Let the CPU spawn a few "archers"(3 is okey). Then spawn one of your archers with the icon on the bottom.
And look how the top 3 CPU "archers" will die with only 4 shots. This not should happen.
Hello!
I am trying to do a game like Stick War 2/ Age War 2 but I have lots of problems with collisions.
Can someone show me a good way to make collisions work well. Now I got a collisions but I got problems. When there is more than one enemy/player in the same spot and gets hit. All of them gets hit.
Example:
2 archer in the same spot. 4 shots collision with them and both die.
Here is the capx.
dl.dropboxusercontent.com/u/7290053/CaveLab/Defense/Defense.capx
I also will be happy if you want give me some advice of how I am coding it.
Thanks in advice.
Peret
Thanks Ashley for the feedback.
Now it works perfectly on both.
I was looking again some post and I found this scirra.com/forum/wont-work-in-internet-explorer_topic68954.html
I started to think maybe it's in my code?
I read again and find something suspicious. I was doing a compare in every tick and this was probably causing the game "crash".
What is weird that in chrome and firefox was working fine but in IE couldn't.
I think now it should work fine.
Thanks anyway :)
I looked for someone for the same problem and I found someone like me but not the exact problem.
As always my game works on Chrome, Firefox but not on IE.
My question is why the game is working on IE if I play from dropbox and if I play from my website it doesn't?
DROPBOX
dl.dropboxusercontent.com/u/7290053/Ayuda%20en%20accion/index.html
WEBSITE
ayudaenaccion.org/wedu-juego/Ayudaenaccion/index.html
I don't get it.
Can someone test it and tell me if it works and version please?
Thanks in advice
dimakoles
Because if you like it you buy it. That's it.
Okey I found the problem.
The problem is that at work they use a Forefront TMG. I don't know it's this for sure but all the "awards" ara poiting to this. Also could be that I don't have Admin permision but most likely it's the ForeFront.
Thank you everybody who lost a bit of their time to help me.
fumeque a mi me funciona :(
Supongo que cuando le dan con una bala se hunde no?
Ship1 On Collision wiht Bullet -->Ship1 Destroy. Bullet destroy. System Create object Ship2 (Sip1.x, Ship1.y)
It works for me :(
I suppose that a bullet hits the ship and sinks(suffocate)?
I just tried in another Pc and as ramones said it works!
On Monday I will try to test on the same PC and post if I had found a solution or is it just random magic.
Thank you for the help! :) ramones —
—
Yes I am using chrome. I tried with Icognito and is not working either.
Here you can play the game and test what it's happening.
Step 1
Go to ayudaenaccion.org/wedu-juego/Ayudaenaccion/index.html
Step 2
Ranking now --> Menu--> Go to Tienda when you die-->Put in the textbox some name--> Ranking will not show the new saved score.
Step 3
Copy paste to your browser ayudaenaccion.org/wedu-juego/Ayudaenaccion/getscores.php
The first time will not show anything. Do it again and your name and your score will appear.
Reload the game again and the score will appear.
I made this example a few days.
Went the box hits the other box. A new one is created.
mega.co.nz
Hope it helps you.
I uploaded the game to the host too. Still not getting scores updates.
I find a new thing. When I call the PHP with the browser. The first time I get the response is not working either but the second time goes fine.
Help
<img src="smileys/smiley19.gif" border="0" align="middle" />
You should add keyboard controls for PC.
Like (1),(2),(3),(4) to shot blue cannons and (n),(m),(,),(.) to shot red cannons.
Nice game! :D
I just tested with the local PHP files and it works fine.
The problem seems to be just on the online PHP files.
So the problem could be on my host?
/*
Joke Time
Day 2: Talking to myself is not working if the mankind where alive this would be easier
*/
Develop games in your browser. Powerful, performant & highly capable.
Edited and added info