• What do you need help with? Version 1
    5,001 replies, posted
I thought I'd might as well start this thread. [B]What do you need help with?[/B] 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).
[QUOTE=Chad Mobile;20804016]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).[/QUOTE] PictureBox controls don't just move around at random. You're going to have to give us more information.
What's a good method for managing the rendering process of a game? I think a scenegraph would be pretty cool.
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 [/code]
[QUOTE=jA_cOp;20804126]PictureBox controls don't just move around at random. You're going to have to give us more information.[/QUOTE] 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.
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)
I mean to literally not allow it off the form lol. It sounds weird explaining it.
[QUOTE=Chad Mobile;20808643]I mean to literally not allow it off the form lol. It sounds weird explaining it.[/QUOTE] 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.
Ok, I will try to figure this out :)
[QUOTE=Agent766;20804339]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 [/code][/QUOTE] Probably not. With this model, one slow client would slow down the entire server.
[QUOTE=Chad Mobile;20810329]Ok, I will try to figure this out :)[/QUOTE] 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[/code] Might not work exactly like that (it's VB -_-), but there's a general idea.
Hint: that code isn't copy and pasteable - Chad Mobile will complain :/
Aww :< Maybe he'll (finally) learn to work it out -Edit- Rated myself optimistic :<
I've been working on my own stuff this whole time...:confused: turb your annoying
[QUOTE=Chad Mobile;20842516]turb your annoying[/QUOTE] Look! The pot's calling the kettle black!
Dude go away
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 [b]fuck off.[/b] [highlight](User was banned for this post ("Flaming / trolling. PM a mod if you have issues with another member." - birkett))[/highlight]
Agreed. Go back to oify.
Please refer to [URL="http://www.wwwdotcom.com/"]this[/URL].
[QUOTE=Chad Mobile;20846600]Please refer to [URL="http://www.wwwdotcom.com/"]this[/URL].[/QUOTE] Funny, original and witty.
Seriously Chad Mobile, you are by far the biggest unintentional troll here. Either learn how to program PROPERLY, or just go away.
Don't send him back to the lua section!
Oh heavens... Hmm... where can we put him? Web programming? Or maybe OIFY
[QUOTE=Chris220;20848984]Hmm... where can we put him? Web programming?[/QUOTE] No! Web programming is good, don't ruin it!
Well, I need help with SFML, but I'll first read that C++ beginners guide before asking 300 questions :v:
[url=http://www.facepunch.com/forumdisplay.php?f=227]Gay Pride[/url] should work fine, they don't have anything very interesting to talk about...
Ok, it's a poll between Gay Pride and OIFY. I vote Gay Pride
How about the Furry section? They're certainly an [I]interesting[/I] bunch of people :/
Interesting idea... Is there any place on this forum where he might fit in?
Yeah: Refugee Camp. Seriously
Sorry, you need to Log In to post a reply to this thread.