j0hnbane I answered on your other topic
Hi,
I think you will need to set up a server and make a push system but not sure Construct2 forum is the right place to talk about this.
Develop games in your browser. Powerful, performant & highly capable.
Need further explanations :
How do you want to decide if an item has to be on left or right?
How do you want to move something on left or right ? If you press left arrow it goes to the left?
It seems that index of only works if your ID is on the first Column.
I changed your example
Do you have a sample capx so I can check what happens?
Remove the quotes in that case, quotes are only needed if it's a characters chain.
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