-
Mar 4th, 2008, 06:24 PM
#1
Thread Starter
PowerPoster
[RESOLVED] Moving the pacman from 1 side of form to another
i'm using Visual Basic 6... i'm trying build the Pacman game... but in a moviment theres a problem i can't find the answer.....
when i move the pacman to out of form(left side and others, but i only code for these one) the pacman must show in other side of form, but he only hiddes... i don't know why... can any one help me?
i need for left, right, up and down... or at least these line......
heres the line:
Code:
If frmNivel.sprPlayer.Left < 0 Then frmNivel.sprPlayer.Left = frmNivel.Width - frmNivel.sprPlayer.Width - Speed
thanks
-
Mar 5th, 2008, 06:37 AM
#2
Hyperactive Member
Re: Moving the pacman from 1 side of form to another
I can't see anything wrong with that line itself... What do you mean by "he only hides"? Does he just disappear as soon as he goes off the edge of the screen and not come back?
metal
-
Mar 5th, 2008, 07:27 AM
#3
Re: Moving the pacman from 1 side of form to another
I can, I think...
Width should be ScaleWidth or better still stored in a variable like GameWidth
-
Mar 5th, 2008, 03:14 PM
#4
Thread Starter
PowerPoster
Re: Moving the pacman from 1 side of form to another
Originally Posted by Milk
I can, I think...
Width should be ScaleWidth or better still stored in a variable like GameWidth
yes milk... you have right... thank you both... now is working.... thanks
-
Mar 8th, 2008, 11:11 PM
#5
Hyperactive Member
Re: [RESOLVED] Moving the pacman from 1 side of form to another
Ah right, yeah. I forgot about that. Stupid twips.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|