This site requires JavaScript, please enable it in your browser!
Greenfoot back
Honza
Honza wrote ...

2020/12/28

Can I get clicked actor's index?

Honza Honza

2020/12/28

#
Hello, I have an array with actors and I would like to get index of the actor which was clicked.
danpost danpost

2020/12/28

#
Honza wrote...
Hello, I have an array with actors and I would like to get index of the actor which was clicked.
Please elaborate and show current related codes (with attempt).
danpost danpost

2020/12/29

#
Honza wrote...
I would like to get index of the actor which was clicked.
An index is a position number within a list or array. I do not see where one is introduced when a click takes place.
Honza Honza

2020/12/29

#
Its alright now I got it, thank you.
You need to login to post a reply.