Feb 29, 2012 03:14 PM
(This post was last modified: Feb 29, 2012 03:19 PM by Weakky..)
That's what I did man.. All picturebox are set manually.
|
.NET
[.NET] .NET Runner - Visual Basic Game [VIDEO] [*UPDATED* - DOWNLOAD LINK NOW] |
|
Feb 29, 2012 03:14 PM
(This post was last modified: Feb 29, 2012 03:19 PM by Weakky..)
That's what I did man.. All picturebox are set manually.
Basicly you want to generate a random X variable for the location points and leave the Y variable the same here is a psudo example(untested notepad):
Dim R as new System.Random Dim Int as integer Int = R.Next(1,9000) Picturebox.location = new System.Drawing.Point(Int,5)'Here is where u add the random X varible to the picturebox location. Your Y variable will always be the same to keep the objects horizontally level. It doesn't have to be 5 tho this is just an example code. (Feb 29, 2012 03:19 PM)DJ BrU Wrote: Basicly you want to generate a random X variable for the location points and leave the Y variable the same here is a psudo example(untested notepad): That doesn't help him at all for generating levels. I can help you if you add me on MSN: [email protected]
I was like "Oh this is too good, he must have protected it..."
then I was like "OH SHIT ITS NOT PROTECTED!! LEECHH" GG OP, Protect your shit, or give open source. Either way I would have gotten it, but you really SHOULD attempt to protect your .net framework programs better. Spoiler (Click to View) Edit: Hope in future you can make a API. That would be PRETTY BADASS if you know what i mean. (Feb 29, 2012 03:31 PM)DJ BrU Wrote: If you want to draw the cubes instead, use the system.drawing.pens class. Please, stop considering me as a fucking noob right now ><. I know how to draw a rectangle, and I know how to use google. Thanks for trying to help me, but you are just spamming the thread :/. Thanks again anyway.
Feb 29, 2012 03:52 PM
(This post was last modified: Feb 29, 2012 03:53 PM by SIM-263922.)
Is this what you need (En GDI)?
(Feb 29, 2012 03:52 PM)SIM-263922 Wrote: Is this what you need (En GDI)? Is the video drawing things based on key strokes..?
Feb 29, 2012 03:59 PM
(This post was last modified: Feb 29, 2012 04:17 PM by SIM-263922.)
(Feb 29, 2012 03:54 PM)(╯°□°)╯︵ ┻━━┻ Wrote: No, i did this using : Code Public Function RandomPosX()This was just an example. I'm just starting with GDI. So i'm training.
Mar 1, 2012 02:33 PM
(This post was last modified: Mar 1, 2012 02:48 PM by SIM-263922.)
If you need help for the random map, i can help you.
Edit : It's a bit better. (In the video, the level.txt seems to be messed up.) As i said, it's just an example on how to do it. I can help you in PM, if you want. |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [Source] by SIM-5420967May 26, 2024 09:50 AM | 2 | 373 |
May 26, 2024 09:50 AM Last Post: xiaowanga8 |
| by HackersDec 20, 2023 06:28 AM | 0 | 129 |
Dec 20, 2023 06:28 AM Last Post: Hackers |
| [.NET] by BladabindiMay 17, 2023 12:20 AM | 1 | 178 |
May 17, 2023 12:20 AM Last Post: NyQuil |