Your Ad Here

Subscribe
 Post #1
 17th March 2010
Dennab
November 2009
2,408 Posts
I thought I'd might as well start this thread. What do you need help with? Someone is bound to see this and read it, and chances are they know the solution to your problem.

I'll start it off: How do I make a picture box in Visual Basic not go off the screen, like if it touches the corners of the form it stops and can't go any further in that direction, but can go the other direction(s).
 Post #2
 17th March 2010
Gold Member
jA_cOp's Avatar
May 2006
5,579 Posts
I'll start it off: How do I make a picture box in Visual Basic not go off the screen, like if it touches the corners of the form it stops and can't go any further in that direction, but can go the other direction(s).
PictureBox controls don't just move around at random. You're going to have to give us more information.
 Post #3
 17th March 2010
jmanmc's Avatar
July 2007
108 Posts
What's a good method for managing the rendering process of a game? I think a scenegraph would be pretty cool.
 Post #4
 17th March 2010
Agent766's Avatar
July 2007
1,180 Posts
What would be a good idea for a main loop for a Runescape Private Server?

What I have right now is essentially
Code:
receivePackets() // Receives all incoming packets
process() // Handles the packet queue
updateWorld() // World-stuff that needs to updated every tick
updateClients() // Sends the update queue to all of the clients
 Post #5
 17th March 2010
Dennab
November 2009
2,408 Posts
PictureBox controls don't just move around at random. You're going to have to give us more information.
I made 4 buttons, to move the picturebox in 4 directions: Up, down, left, and right. Those all work fine, but you can move it off of the screen.
 Post #6
 17th March 2010
i300's Avatar
December 2009
892 Posts
Check the x,y of the picturebox and then make sure it isn't going off the screen (you should know how big the screen is)
 Post #7
 18th March 2010
Dennab
November 2009
2,408 Posts
I mean to literally not allow it off the form lol. It sounds weird explaining it.
 Post #8
 18th March 2010
tobias104's Avatar
January 2010
48 Posts
I mean to literally not allow it off the form lol. It sounds weird explaining it.
There's no property you can set that says, "Don't allow this control off the edge of the screen," you have to manually add code to check that in with the code that updates its position.
 Post #9
 18th March 2010
Dennab
November 2009
2,408 Posts
Ok, I will try to figure this out :)
 Post #10
 18th March 2010
turb_'s Avatar
February 2010
2,080 Posts
What would be a good idea for a main loop for a Runescape Private Server?

What I have right now is essentially
Code:
receivePackets() // Receives all incoming packets
process() // Handles the packet queue
updateWorld() // World-stuff that needs to updated every tick
updateClients() // Sends the update queue to all of the clients
Probably not. With this model, one slow client would slow down the entire server.
 Post #11
 18th March 2010
Chris220's Avatar
May 2008
1,711 Posts
Ok, I will try to figure this out :)
Pseudocode:
Code:
' All of these are easily accessible from the default properties on form and picture box controls
Store X, Y <-- Position of the picture box
Store picWidth, picHeight <-- Width and height of the picturebox
Store frmWidth, frmHeight <-- The width and height of your form

' Now, check if we're in bounds for each movement
If X > 0 Then
    ' Move left here
End If

If (X + picWidth) < frmWidth Then
    ' Move right here
End If

If Y > 0 Then
    ' Move up here
End If

If (Y + picHeight) < frmHeight Then
    ' Move down here
End If
Might not work exactly like that (it's VB -_-), but there's a general idea.
 Post #12
 18th March 2010
turb_'s Avatar
February 2010
2,080 Posts
Hint: that code isn't copy and pasteable - Chad Mobile will complain :/
 Post #13
 18th March 2010
Chris220's Avatar
May 2008
1,711 Posts
Aww :<
Maybe he'll (finally) learn to work it out

-Edit- Rated myself optimistic :<
 Post #14
 20th March 2010
Dennab
November 2009
2,408 Posts
I've been working on my own stuff this whole time... turb your annoying
 Post #15
 20th March 2010
turb_'s Avatar
February 2010
2,080 Posts
turb your annoying
Look! The pot's calling the kettle black!
 Post #16
 20th March 2010
Dennab
November 2009
2,408 Posts
Dude go away
 Post #17
 20th March 2010
turb_'s Avatar
February 2010
2,080 Posts
No.

You should be thinking about going away.

Everyone here is fucking sick at your constant whining and 10 million problems when you try to copy paste code and expect it to work. We've all tried to help you many times, but you aren't grateful and you complain like a bitch when we don't give you code that you can just copy paste and expect to work.

Do us all a favor and fuck off.

(User was banned for this post ("Flaming / trolling. PM a mod if you have issues with another member." - birkett))
 Post #18
 20th March 2010
efeX's Avatar
April 2009
2,216 Posts
Agreed. Go back to oify.
 Post #19
 20th March 2010
Dennab
November 2009
2,408 Posts
Please refer to this.
 Post #20
 20th March 2010
turb_'s Avatar
February 2010
2,080 Posts
Please refer to this.
Funny, original and witty.
 Post #21
 20th March 2010
Chris220's Avatar
May 2008
1,711 Posts
Seriously Chad Mobile, you are by far the biggest unintentional troll here.
Either learn how to program PROPERLY, or just go away.
 Post #22
 20th March 2010
aualin's Avatar
April 2007
413 Posts
Don't send him back to the lua section!
 Post #23
 20th March 2010
Chris220's Avatar
May 2008
1,711 Posts
Oh heavens...
Hmm... where can we put him?
Web programming?
Or maybe OIFY
 Post #24
 20th March 2010
turb_'s Avatar
February 2010
2,080 Posts
Hmm... where can we put him?
Web programming?
No! Web programming is good, don't ruin it!
 Post #25
 20th March 2010
Gold Member
Dennab
June 2007
8,680 Posts
Well, I need help with SFML, but I'll first read that C++ beginners guide before asking 300 questions
 Post #26
 20th March 2010
aualin's Avatar
April 2007
413 Posts
Gay Pride should work fine, they don't have anything very interesting to talk about...
 Post #27
 20th March 2010
Chris220's Avatar
May 2008
1,711 Posts
Ok, it's a poll between Gay Pride and OIFY.
I vote Gay Pride
 Post #28
 20th March 2010
turb_'s Avatar
February 2010
2,080 Posts
How about the Furry section? They're certainly an interesting bunch of people :/
 Post #29
 20th March 2010
Chris220's Avatar
May 2008
1,711 Posts
Interesting idea...
Is there any place on this forum where he might fit in?
 Post #30
 20th March 2010
turb_'s Avatar
February 2010
2,080 Posts
Yeah: Refugee Camp. Seriously
 Post #31
 20th March 2010
Chris220's Avatar
May 2008
1,711 Posts
Now there's an attractive idea...
 Post #32
 20th March 2010
quincy18's Avatar
September 2007
587 Posts
I vote for the gaypride forum
 Post #33
 20th March 2010
TheBoff's Avatar
September 2006
501 Posts
Christ, lay off him a bit guys. Ok he's irritating, but there's no reason to launch into him on the public forum. Ask a mod to ban him, or have your little character assassination over pms. He is a real person, you know.
 Post #34
 20th March 2010
quincy18's Avatar
September 2007
587 Posts
Christ, lay off him a bit guys. Ok he's irritating, but there's no reason to launch into him on the public forum. Ask a mod to ban him, or have your little character assassination over pms. He is a real person, you know.
Come on just read most of the posts he's made on this forum and the lua forum etc.
 Post #35
 20th March 2010
Chris220's Avatar
May 2008
1,711 Posts
Well whatever, I'll just finish by saying that personally, I think he needs to GTFO.
We've tried help him, he just refuses to use our help.
 Post #36
 20th March 2010
TheBoff's Avatar
September 2006
501 Posts
Come on just read most of the posts he's made on this forum and the lua forum etc.
I do, as they're usually good for a laugh. It's just my teacher told me cyber bullying was wrong :(
 Post #37
 20th March 2010
quincy18's Avatar
September 2007
587 Posts
I do, as they're usually good for a laugh. It's just my teacher told me cyber bullying was wrong :(
Ofcourse its wrong but it can't be helped with him, he knows he does shit wrong and still continues.
 Post #38
 20th March 2010
Chris220's Avatar
May 2008
1,711 Posts
He just doesn't learn AT ALL.
 Post #39
 20th March 2010
Dennab
November 2009
2,408 Posts
Shut the fuck up, I do my best. Sorry that isn't good enough for you asshole.
 Post #40
 20th March 2010
ZeekyHBomb's Avatar
June 2006
1,985 Posts
Doesn't it make you wonder that no one in this section seems to even remotely like you?
Reply

All times are GMT. The time now is 09:55AM.

Facepunch Studios 2010 - Server 'MARGE'