A forum for the Tanghinian

Welcome to Discuss
Monday, 6 September 2010 @ 04:33 PM HKT


 Forum Index > Computer Lessons > S2 Computer Game Programming New Topic Post Reply
 Questions
 |  Printable Version
S080127@eClass
 March 07 2010 14:58 PM (Read 643 times)  
Forum Newbie
Newbie

Status: offline

Registered: 03/07/10
Posts: 12

呀sir,我唔記得左點做picture random moving,d code應該點寫?
仲有,有冇event係話picturebox enter picture架?
Thanks For Help~


 
Profile
Quote
S080114@eClass
 March 07 2010 15:08 PM  
Forum Junior
Junior

Status: offline

Registered: 02/12/10
Posts: 18

PICTUREBOX1.LEFT=INT(RND*XXX)+XXX
PICTUREBOX1.TOP=INT(RND*XXX)+XXX
XXX=你自己中意的數值


 
Profile
Quote
S080114@eClass
 March 07 2010 15:09 PM  
Forum Junior
Junior

Status: offline

Registered: 02/12/10
Posts: 18

你指ENTER個PICUREBOX係咩意思???

如果你指個MOUSE去到個PICTUREBOX上面,就是MOUSEENTER


 
Profile
Quote
Wong sir
 March 07 2010 15:10 PM  
Forum Chatty
Chatty

Status: offline

Registered: 12/28/06
Posts: 57

picture random moving
I can't understand what you mean.
If you mean showing a picture at a random position, it is toooooooooo easy that it is impossible that you don't know!

To detect whether the picture is overlapping on the other picture, you need to check left, and width properties and also top and height properties.

Pls read the forum posts and you will see a detail description.

Thanks S080114, he gave good hints!!!

唔好諗住問咗自己就唔使諗!

Wong sir


 
Profile Email Website
Quote
S080127@eClass
 March 07 2010 15:41 PM  
Forum Newbie
Newbie

Status: offline

Registered: 03/07/10
Posts: 12

THZ=)呀sir s080114同學XD 其實我都諗左好耐,唔記得左抄NOTES,下次會留意- -


 
Profile
Quote
Wong sir
 March 07 2010 15:43 PM  
Forum Chatty
Chatty

Status: offline

Registered: 12/28/06
Posts: 57

係你唔專心!!!

Twisted Evil

快d 認!


 
Profile Email Website
Quote
S080127@eClass
 March 07 2010 15:47 PM  
Forum Newbie
Newbie

Status: offline

Registered: 03/07/10
Posts: 12

OK,我係- - Cry


 
Profile
Quote
S080114@eClass
 March 07 2010 15:49 PM  
Forum Junior
Junior

Status: offline

Registered: 02/12/10
Posts: 18

無計,你上()的堂

()-->一個人


 
Profile
Quote
S080127@eClass
 March 07 2010 15:49 PM  
Forum Newbie
Newbie

Status: offline

Registered: 03/07/10
Posts: 12

Good! Big Grin


 
Profile
Quote
S080127@eClass
 March 07 2010 15:50 PM  
Forum Newbie
Newbie

Status: offline

Registered: 03/07/10
Posts: 12

多一問- - top 同 left 既opposite係咩


 
Profile
Quote
S080114@eClass
 March 07 2010 15:51 PM  
Forum Junior
Junior

Status: offline

Registered: 02/12/10
Posts: 18

佢個日係咪都係一句野都無講??


 
Profile
Quote
S080114@eClass
 March 07 2010 15:51 PM  
Forum Junior
Junior

Status: offline

Registered: 02/12/10
Posts: 18

top同left都係無的


 
Profile
Quote
S080114@eClass
 March 07 2010 15:54 PM  
Forum Junior
Junior

Status: offline

Registered: 02/12/10
Posts: 18

top係=同最上面的距離

如果top大,佢ge位置就低d

left=同左面的距離

如果left大,佢ge位置比較偏向右邊


 
Profile
Quote
S080127@eClass
 March 07 2010 17:52 PM  
Forum Newbie
Newbie

Status: offline

Registered: 03/07/10
Posts: 12

THZ=)MUCH 但都係冇頭緒改咩game好


 
Profile
Quote
S080114@eClass
 March 07 2010 20:14 PM  
Forum Junior
Junior

Status: offline

Registered: 02/12/10
Posts: 18

你得番5日時間ja bor


 
Profile
Quote
Content generated in: 0.86 seconds
New Topic Post Reply



 All times are HKT. The time is now 04:33 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Full HTML Allowed 
Censored Content