Ask Experts Questions for FREE Help !
Ask
    ka2na's Avatar
    ka2na Posts: 6, Reputation: 1
    New Member
     
    #1

    Oct 13, 2011, 08:47 PM
    Small basic computor programming / codeing, game help
    Hi I was wondering do any of you know the software programme where you make programmes and software through lines and lines of coding, anyway I am making the game airhockey, but a virtual version which yes is similar to pong. I was wondering how to I get my rectangle shape to move smoothly, and not appear in random spots, thank you. This is what I have coded thus far. Your feed back would be much appreciated

    'properties
    Color = "Black"
    GraphicsWindow.CanResize = "true"

    SetUpWindow()

    Sub SetUpWindow
    GraphicsWindow.Width = Desktop.Width
    GraphicsWindow.Height = Desktop.Height
    GraphicsWindow.Left = 0
    GraphicsWindow.Top = 0
    GraphicsWindow.Height = 1000
    GraphicsWindow.BackgroundColor = "Aqua"
    GraphicsWindow.DrawRectangle(796,1,2,10000)
    GraphicsWindow.DrawEllipse(750.5,394,100,100)
    EndSub

    SetUpShapes()

    Sub SetUpShapes

    ellipse = Shapes.AddEllipse(10,10)
    rectangle = Shapes.AddRectangle(40,80)
    ball = Shapes.AddEllipse(50,50)

    EndSub

    Shapesmove()

    Sub ShapesMove
    GraphicsWindow.MouseDown = OnMouseDown

    EndSub

    Sub OnMouseDown
    x = GraphicsWindow.MouseX
    why = GraphicsWindow.MouseY
    Shapes.Animate(ball,x,why,700)


    x = GraphicsWindow.MouseX
    why = GraphicsWindow.MouseY
    Shapes.Animate(rectangle,x,why,400)
    EndSub

Check out some similar questions!

Computor shutdown [ 3 Answers ]

I have a old sony vaio (windows 98SE) edition, computer locks up frequently, I have 191. Mg ram running 77% free. I have installed spyware buster, seem to help, but still locking up. Any advice. Thanks Jerry

Computor has a mind of its own! [ 7 Answers ]

:D - hello; have had masses of problems with my computor in the past week; many of the problems seem to have stemmed from spyware- have downloaded adaware and that found over 300 problems! Still finding about 15 a day... Despite having broad band my computor is now slower than it was before the...

An Introduction to Programming using: Microsoft visual basic.NET [HELP] [ 8 Answers ]

I need help in making a program using visual basic.. u can download it here: http://lab.msdn.microsoft.com/express/vbasic/default.aspx Question: An employee should receive pay equal to time and a half for every hour worked over 40 hours. a) Create a payroll application that prompts...


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.