PDA

View Full Version : arrows make move



flilight
01-10-2010, 08:00 PM
Does anybody know how to make an object move by pressing an arrow?

rafidiisme
01-10-2010, 08:42 PM
whaaaaaaaa? what are you talking about???????

flilight
01-10-2010, 10:06 PM
like virtual arrows on a screen, and you press them, and it makes an object move, for eg, brick breaker you could make the arrows make the bar on the bottom move side to side

StMako17
01-11-2010, 10:56 PM
you could prob do so with some html

R33Luke
01-14-2010, 02:16 PM
Mako this is Objective-C for an iPhone app :)

I think you should shoot http://YouTube.com/HDiPhone a question. He is BA at iPhone apps.

Jhon Smitch
05-01-2010, 06:34 AM
Hi,
Put a shape on the form and write the following code:
--------------------------------------…
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
'for going left and right
If KeyCode = 37 Then Shape1.Left = Shape1.Left - 10
If KeyCode = 39 Then Shape1.Left = Shape1.Left + 10

'for going up and down
If KeyCode = 38 Then Shape1.Top = Shape1.Top - 10
If KeyCode = 40 Then Shape1.Top = Shape1.Top + 10
End Sub
--------------------------------------…