Results 1 to 2 of 2

Thread: Moving Images

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    2 miles from everywhere
    Posts
    80

    Unhappy Moving Images

    I found how to make an image move...

    I now need to know how to make it rotate, and move in the angle it is rotated when I press my up arrow.

    I need to know how to make it play different animations as it moves. Right now, I got a space ship with a frozen flame coming out the back

    And I also need to know how to make it shoot... This is a big must

    Please tell me where a tutorial is for these or just put the code in here. Thanks

    P.S. Is it possible to put models into a visual basic program?

    ---------------------------------------------------------------------------------
    Last edited by Drakon; Sep 1st, 2001 at 06:09 PM.

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hey
    that's a lot of things you are asking there.
    You should do them one by one, learn one than the other and after you did them all and understand the code put it together.

    Well for the turning of pictures there is a good way described on www.ur.co.nz. but using turned pictures normally is slow unless you use D3D.

    for the angle wise movement you need trig. You just increase or decrease an variable for the angle when you press left or right
    than you find the y and x coordinates by using
    MoveX = cos(angle) * velocity
    MoveY = sin(angle) * velocity

    the angle var has to be in radians. to convert degrees to radians you need to multiply the Degrees by Pi/180.
    Sanity is a full time job

    Puh das war harter Stoff!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width