Welcome Guest. Please Login or Register. Apr 5th, 2018, 10:45pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Stick man football
« Thread started on: Feb 21st, 2015, 9:16pm »
Hi
I would like to make a sort of game / possibly for tactical training in football set-pieces e.g. corners .
I would like to make it with stick figures but with many moving limbs.
It seemed to me that I could do this with hundreds or possibly thousands of line draw commands. Is this a doomed approach ? Is there an undo line command?
Or perhaps should it just be done with sprites? Or something else?
I would appreciate any quick and easy to understand advice.
The main issue I think I'm trying to look for is reasonable speed and smoothness of animation.
Thanks Danny Cheltenham
Logged
rtr2 Guest
Re: Stick man football
« Reply #1 on: Feb 21st, 2015, 10:11pm »
Is this a doomed approach ? Is there an undo line command?
A similar question was asked not so long ago; for your 'undo line' functionality use exclusive-or (XOR) plotting, then to 'undo' anything you just plot it again!
One thing you may need to watch is that, because of the nature of XOR plotting, any overlapping regions will be 'erased'. So if you have a stick figure and his arms 'cross', where they overlap will revert to the background colour. The same will happen if two figures overlap (this effect was often seen in early video games).
That may not matter to you, but if it does you may need to consider an alternative approach. One such is the GFXLIB2 library (if you can cope with the overhead of learning it) which can produce smooth animations: