making a character 2d animated

03/06/2012 22:38 fear-x#16
ive began to test gdi+
but ive got a problem...
[Only registered and activated users can see links. Click Here To Register...]

when moved the thing... any ideas how to fix that? xD
03/07/2012 15:43 jacky919#17
Quote:
Originally Posted by fear-x View Post
ive began to test gdi+
but ive got a problem...
[Only registered and activated users can see links. Click Here To Register...]

when moved the thing... any ideas how to fix that? xD
Clear the screen before Rendering the next frame, for example draw a white rectangle over you window.
03/07/2012 17:19 fear-x#18
so
$figur = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\img.bmp")
$height = _GDIPlus_ImageGetHeight($figur)
$width = _GDIPlus_ImageGetWidth($figur)
$verhaelnis = $height / $width
$graphic = _GDIPlus_GraphicsCreateFromHWND($Gui)


_GDIPlus_ImageDispose ($graphic)

would do it?
03/07/2012 19:03 jacky919#19
[Only registered and activated users can see links. Click Here To Register...]
03/07/2012 19:31 fear-x#20
ok well instead of using that ive ended up using flash objects (swf files) :D
which seem to be better i gues bcz animation can be done easier and smoother i suppose :}

i still cant fix the image delay left over thing .... i still have the image all over place when its moved
03/08/2012 10:49 Buffmebuffyou#21
[Only registered and activated users can see links. Click Here To Register...]

Check this sprite example out (yeah it's by me).

If I got time I'll explain Gdi to you.