![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Can You please define "sprite" to me?
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
||||
|
You can use the normal (background) Form layer using DrawImage and then apply a separate image to the Forms forelayer using the FDrawImage command. Finally you can erase part or all of the forelayer using FErase before moving the image. Another useful aspect to using the forelayer is that it supports transparency so you can select a particular colour not to display on the forelayer.
Regards, RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD. Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD. "Defeat never comes to any man until he admits it."Josephus Daniels |
|
||||
|
Stellaferox,
I'm not familiar with the 'famous' boucing ball but here's a little somthing I knocked up whist having my dinner at work - Code:
Sub Globals Height=100: LastHeight=100: Direction=5 End Sub Sub App_Start Form1.Show Form1.Line(0,200,Form1.Width,200,cBlack) Form1.ForeLayer=True BounceBall Timer1.Enabled=True End Sub Sub BounceBall Form1.FCircle(Form1.Width/2,100,5,cRed,F) LastHeight=100 End Sub Sub Timer1_Tick Height=LastHeight+Direction Form1.FErase(Form1.Width/2-5,LastHeight-5,Form1.Width/2+5,LastHeight+5) Form1.FCircle(Form1.Width/2,Height,5,cRed,F) LastHeight=Height If Height=195 Then Direction=-5 If Height=100 Then Direction=5 End Sub Regards, RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD. Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD. "Defeat never comes to any man until he admits it."Josephus Daniels |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drawing and moving a Character Transparently (Not a Sprite) | Drewpeu | Questions & Help Needed | 2 | 10-08-2008 04:15 PM |
| Diff GPS values without moving GPS mouse | Georg | Questions & Help Needed | 1 | 04-22-2008 07:58 AM |
| moving a sprite? | colin9876 | Questions & Help Needed | 7 | 11-27-2007 05:10 PM |
| XYCalc -graphs an equation or editable table of figures in regular, bar or pie chart | HarleyM | Code Samples & Tips | 2 | 11-24-2007 08:21 AM |
| Error when moving treeview to a tabcontrol | Peter | Questions & Help Needed | 2 | 05-15-2007 07:36 AM |