Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


PictureBoxArray location

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Mon Feb 18, 2008 4:34 am    Post subject: PictureBoxArray location Reply with quote

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
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Feb 18, 2008 5:01 am    Post subject: Reply with quote

Games is NOT moving images touching each other...
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Mon Feb 18, 2008 5:06 am    Post subject: Reply with quote

Symbol wrote:
Games is NOT moving images touching each other...

They can be.
Back to top
View user's profile Send private message
Snootae
Grandmaster Cheater
Reputation: 0

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Mon Feb 18, 2008 5:38 am    Post subject: Reply with quote

Quote:
Games is NOT moving images touching each other...


not sure what you mean there buddy..

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites