Moving a pic around the screen ( I can only move it in 2 directions)

I need to move a picture around the screen using 4 directions. I can move it in the X+, Y+ direction, but I cannot get it to move in the X-, Y- direction. I'm using an if then statement with >= to get it started and to change direction. Also using the setbound command.
Thanks for your help,
Eric

Comments

  • If you want to move the picture up:
    [code]imgPicture.Top = imgPicture.Top - Number[/code]
    If you want to move the picture down:
    [code]imgPicture.Top = imgPicture.Top + Number[/code]
    If you want to move the picture left:
    [code]imgPicture.Left = imgPicture.Left - Number[/code]
    If you want to move the picture right:
    [code]imgPicture.Left = imgPicture.Left + Number[/code]

    [b]Number[/b] moves the picture a certain amount of twips.

    Hope this helps,
    ..:: Zantos ::..
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion