you know what i mean . like the old gorilla game . but not that complicated!!!!!!!!!!!
i want a very very simple one.
i want to give an angle (and maybe a velocity) and after pressing a button the object (shape) will move across the form according to the calculations . and don't worry , i am good in physics.
please , give me the simplest way.
thankyou
please help we with angle shooting (moving an object ).
well,is there anyone else to help. does anyone know how to code such a program. in the simplest way for a beginer!
thank you
Use a picture box and a timer. Put a picture of the thing you want to move in the picture box. Then set the interval of the timer to 50 or something and enabled to true.
thanks, but i know about moving an object . i want to learn about moving an object with an angle .
here's the program :
i have a command button and a shape in my form along with a text box .after adding an amount in the textbox and clicking the button, the shape is shot and flies through the form. actually the amount that goes in the textbox is the angle that the shape should be shot at. something like the old gorilla game but not that complicated!!!!!very very simple.
thankx again.
VB is using Rad and not degrees. So first you have to calculate the angle in PI. Then you will have to calculate the X and Y vectors. I suppose you have to enter the velocity somewhere in you app too. So then you can calculate the X and Y speed.
In the timer event add the X speed to the left property and the Y component in the top property...
thank you so much. it really worked in the simplest way.!!!!
thankx again.
uhhhhhhhhhhhh.
is there anyway to tell the shape to come down after it travels a certain distance.(like a parabola path) . can you help me again in the simplest way.
Originally posted by mnbvcxz thankyou so much , i was looking for such a great help in a very simple way for months! the code was excellent !
The code isn't that great...it's just a little physics. But I'm glad someone found it usefull. So just post again if you or anyone else have more questions to ask...