• Welcome to Dark Bit Factory & Gravity.
 

Wiggle It

Started by Tr4nt0r, August 07, 2009

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Tr4nt0r

this is my go at something a bit demo-ish.

<< edit. >> thanks to Clyde ( who has told me to say, about how he has a form of ecsma on his palms, and will be out of action for a bit till it clears up ) for hints with the pointer type method. I've used Blitz Plus for an insight with banks.

it makes an image wiggle across and down using rectangles.

1 - does not draw properly on the screen. some how it still uses 256 x 256 size that the image is, it should draw to the necassary screen area without that frame.

2 - i'd really like help with making the routine muchos quicker, if you use asm and / or ptr maths would you be able to comment on it please and thanks.

<< end of transmission. >>

Hotshot


Shockwave

Need to install the latest freebasic again to test it, what is is about pointers that you need help with by the way? You've used them throughout this listing and they seem fine at a glance.
Shockwave ^ Codigos
Challenge Trophies Won:

zawran

I don't have freebasic installed, so I can't view it :(

hellfire

Attached an exe for win32.
Challenge Trophies Won:

Tr4nt0r

#5
Mike - thanks man. ive picked up alot from your suggestions and aid.

Hotshot - thankyou. however it is not displaying as it's supposed to do.

Shockwave - I understand most of using a pointer type, and i was thinking that maybe star pointer name might make it faster; not sure how to use it in this. i have seen it in some ezamples.

Hellfire - thanks for putting up an exe

<< end of transmission >>

benny!

N1 wobble wiggle stuff!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Shockwave

/\ My reply above is no longer relevant because Trantor edited his first post so please disregard it.
Shockwave ^ Codigos
Challenge Trophies Won:

Tr4nt0r

fixed the issue with the width and height area, had to draw the image centred into another that was 256+ sin_width and cos_height.

working lates next week, will check back next weekend if any updates to improve it.

<< end of transmission. >>

Clyde

Great that you sussed it and fixed that mate.
I'd be interested in improvements too, if there's a way to make this quicker. As using this does take up some speed, especially if you use it on other images ( logos for example ), and bitmap scrollers. Some people call this image strips. I had a look on the net, but it only had stuff for an inbuilt command in C++.

Cheers and dont give up dude,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won: