Hi,
Don't really understand what kind of game you want to make, can you make a sample so we can help you?
1) Array.indexof("your string") => You will get the X index
2) Array.At(Array.indexof("Your String"),Y Index)
3) Set Variable to Array.At(Array.indexof("Your String"),Y Index)
May be something like this :
Also I would recommend you to use smaller sprites to limit memory usage, your enemy sprite is too big
Ok, it should be better now :
https://dl.dropboxusercontent.com/u/107104215/Enemy_Setup.capx
I will modify your Capx then send it back to you with fix inside.
Do you have a sample capx so I can check what is going wrong?
Array.At(Array.indexOf("ID_1"), Y Index of needed value) should work.
if it's invisible you can add a condition "Object is visible" on your tap event
I'm not sure collision disabled avoid the tap event to be triggered.
You could add a specific boolean variable on objects named like "EnableTap" and set this variable to false when you want to disable them.
So on your tap event you check if EnableTap is set to true before executing the corresponding actions
You should display your object count in real time, may be this count increases so memory too.
If that's the case it means you will need to destroy unnecessary objects.
Develop games in your browser. Powerful, performant & highly capable.
Send me a sample capx I will modify it
Member since 20 Aug, 2012