![]() |
|
|||||||
| 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 |
|
||||
|
Use tha Sprite dll, wichcan detect colisions with other sprite objects, and wiht edges or specific coordinates....
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
||||
|
See this post: D-Pad Navigation Sample (?)
Instead of "If specialKey = ..." you should use Code:
Select SpeicalKey Case cUpKey ... Case cLeftKey ... Case cRightKey ... Case cDownKey ... End Select |
|
||||
|
Them use the keyPress event and use/look for the ASCII key value....
For instance, chr13 is the enter key... Google a bit and you will find a complete reference to the ASCII key map...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
||||
|
The only two standart control in B4PPc that suport "keyPress Event" are the Button and the Textbox.
Other controls have similar events... You can change the default event triggered by adding an event... For instance you want the same code to de used in more than one event, but That would cause too much code lines... so just add an extra event that will overRide the default event of the control: AddEvent("Button1",KeyPress,"MySub") AddEvent("TextBox1",KeyPress,"MySub") This will cause that both keypress events will be "linking" to the same Sub...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
![]() |
| 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 |
| ide and arrow keys | dennishea | Questions & Help Needed | 0 | 09-22-2008 10:45 PM |
| A little game I put together ...... | taximania | Share Your Creations | 0 | 12-30-2007 08:48 PM |
| New game | maxtillberg | Share Your Creations | 1 | 10-29-2007 10:27 PM |
| [GAME] Merchants | legugusse | Share Your Creations | 4 | 07-11-2007 09:36 AM |
| Game | jorgerhv | Share Your Creations | 0 | 05-20-2007 01:09 AM |