Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit/AppGameKit Studio Showcase / Creating a simple lasso to select sprites on screen II

Author
Message
TransDiv
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location:
Posted: 11th May 2015 04:07 Edited at: 11th May 2015 18:01
This is an adaptation of the previous guide "Creating a simple lasso to
select sprites on screen." from thescenecommander [DEV].

To begin creating the lasso box you press the screen and without raising
your finger you move and extend the box; When you release the press all
the sprites inside the lasso box are choosen and their color is soften to
stand out them.

Once the lasso box is created, two command buttons are shown in the
bottom-right corner, you can press either of them (Move or Attack
buttons); The buttons commands are not really implemented but after you
press them you also must press again in some point of the screen where the
commands would take action (actually it only shows a cross in the screen
during three seconds).

You can cancel the commands buttons menu pressing in any empty part of
the screen but if you press any of the buttons you must choose a
coordinate where the cross will be painted and wait three seconds to be
closed.

The program is a little complicated because it uses several state
variables to remember where it is in his progression.

The only media resource used in this project is the image file
"item0.png" that you must copy from "\Projects\Sprites\SpriteAnim1\media"
to the media folder in your project.

TransDiv



TransDiv

Login to post a reply

Server time is: 2024-11-24 19:26:49
Your offset time is: 2024-11-24 19:26:49