| View previous topic :: View next topic |
| Author |
Message |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Mon Feb 18, 2008 4:34 am Post subject: PictureBoxArray location |
|
|
i am working on a snake game in vb.net (lame i know) but i am having problems with the head colliding with the tail
i have just got 99 images which are moved when needed, they are name imgSnake(0-99), but i cant seem to access their left value
Parts declared thusly:
| Code: | Structure SnakePart
Dim X As Integer 'X-Coordinate
Dim Y As Integer 'Y-Coordinate
Dim Facing As Integer '1 = left, 2 = up, 3 = right, 4 = down
End Structure |
then
| Code: | | Dim Snake(100) As SnakePart |
but when trying this
| Code: | | If imgSnake(0).Left = imgSnake(1).Left Then |
i get nothing
even trying | Code: | | label1.text = imgSnake(0).Left |
does nothing,
i just realised the snake(100) thing is only used so i can use imgSnake(integer) easily, i couldn't get them to load dynamically, so i just made them all
can anyone shed light on this situation?, i am stumped,
thanks
_________________
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Mon Feb 18, 2008 5:01 am Post subject: |
|
|
| Games is NOT moving images touching each other...
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Mon Feb 18, 2008 5:06 am Post subject: |
|
|
| Symbol wrote: | | Games is NOT moving images touching each other... |
They can be.
|
|
| Back to top |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Mon Feb 18, 2008 5:38 am Post subject: |
|
|
| Quote: | | Games is NOT moving images touching each other... |
not sure what you mean there buddy..
_________________
|
|
| Back to top |
|
 |
|