Plataform game!

Neo3003
01-16-2002, 05:16 AM
Can someone send me an example of plataform game with only VB codes?

Sorry about my English...:p

billbrasilbr@yahoo.com.br
Thanks

ardman
01-16-2002, 05:32 AM
Hi,

I'm currently working on a side scroller, so when it is in a fit state, I'll upload the code so you can have a look. You can email me at neil_knight_2000@yahoo.com.

Neil :D

Neo3003
01-16-2002, 05:39 AM
Thank you!:)

Waxycat
01-18-2002, 03:55 PM
i'd like to see that too!

Iceplug
01-18-2002, 07:26 PM
I want to see it also (three?).
I made a platform game using VB code (with one or two API functions, but the original is pure VB code).
I want to compare;) :D . Or should I go first?

Waxycat
01-19-2002, 09:46 AM
yeah, you too, in fact, anyone who has made a game put it on the board. if you don't want to share the source code, send it compiled, cause gamers are alwayz looking for new games!

Thinker
01-19-2002, 10:00 AM
Waxycat, forum rules state no compiled only attachments.

Iceplug
01-19-2002, 05:56 PM
OK. I've attached the semi-original version of my game.
The monsters and characters are not mine, but free downloads.
The music isn't mine either.
I think I fixed everything. Are there any problems with this?:cool:

Iceplug
01-19-2002, 06:07 PM
Hey! I don't see my attachment!
Well, let's try again.

Waxycat
01-21-2002, 04:33 PM
oh, my bad.

wild wolf
01-22-2002, 02:29 AM
nice one :)

Squirm
01-22-2002, 06:45 AM
Very nice Iceplug, very nice indeed......
Tricky to complete, but I got there! :D

Neo3003
01-22-2002, 09:41 AM
Is that an example?
Plataform game?
I can't read english very well :p

Iceplug
01-23-2002, 08:40 AM
Thanks! :)
This is my platform game example.
I have 42 levels.
I did a space level too with a different gravity and it works just the same.
:D
I suppose I could attach another one when I get back home, but that won't be but for another 2-and-a-half weeks. :(

Teric
01-24-2002, 09:18 AM
Nifty! Nice job there. It would be nice if I could get Mog to jump sideways by running and then jumping. Right now, in order to jump sideways, I need to stop, jump, then press left/right.

McTerry
01-25-2002, 01:45 AM
Why don't ya sella your stuff then. Or make it to an sharware??
Hehe. Mabye it's not so good to sell, but let ppl beta test it. =P
:)

Smell ya' later!

Kitaiko
01-25-2002, 06:41 AM
ok i made 1, it is for ne1 who has ever had a birthday. Also its got some transparent stuff too. tell me if it doesnt work.

Kitaiko
01-25-2002, 07:06 AM
Hey y dont we get heaps of ppl to upload platformers and make a poll to see which one ppl think r the best

ardman
01-25-2002, 07:08 AM
Good idea. I'm currently working on one so I'd like to know the feedback from you other coders out there. When I have a level up and running I'll upload! :D

Neil

Kitaiko
01-25-2002, 07:30 AM
ok, so ppl please upload a game and well make a poll

Iceplug
01-25-2002, 08:45 AM
I don't think I can update my game anymore.
Actually, I probably could, but I'm not at home anymore, so I don't think I can update my game. :(

Waxycat
01-25-2002, 09:38 AM
well i intend to make one. i have all the physics and most of the characters and stuff planned out. if it turns out anything like i hope it will be amazing, but you'll probably have to wait a few years for me to finnish.

Kitaiko
01-25-2002, 08:06 PM
My first game didnt work properly, i dont think, so here is a better version of it:

Waxycat
01-26-2002, 11:15 AM
dood that is INSANELY awsome! the physics are good and everything, you even animated the candle and it has transparency!!!

Waxycat
01-26-2002, 11:18 AM
i don't even recognize some of this stuff, what's the msimg32 and user32 library? how does user32 differ from gdi32? where can i get information and descriptions of all these functions? some kind of book? cause i haven't found a good one yet for that kind of stuff!

Waxycat
01-26-2002, 12:22 PM
well i was hopeing someone had said something since this morning so this wouldn't be my third post in a row, but oh well. i was looking through your code and it's uncommented and a little hard to read. exactly what x1, xn, xp, y1, y2, y3, i, j, ju, ju1, jr, and sp represent? because frankly i have no idea. anyway, great game! just need some enemys.

ChiefRedBull
01-26-2002, 12:29 PM
Waxycat - the user32.dll etc... are windows DLLs, full of API. A good book is "The Programmers Guide to the Win32 API" by Dan Appleman. Its got everything and then some more in it. :)

Iceplug
01-26-2002, 02:47 PM
I made it back home - here is an update on my game.
I added 4 new enemy type.
I added the blue enemy that oscillates.
I added the gold enemy that travels in a circle.
(The "More Physics" part :cool: )
I added a pair of war enemies. :p
The black being like an incendiary bomb, busting into flames when it hits the ground.
The purple being like a homing missile or some such missile that shoots when it hits the ground.
It's a homing missile for an instant - when it hits the ground.
:D

Waxycat
01-26-2002, 03:13 PM
iceplug, what r u running 2000? you forgot to uncheck the recursive folders or whatever and when i unzip it's in like 34857340 subdirectorys. anyway, you seem to have sped it up a lot, it was running very sluggish before. i still can't move very fast hardly at all, you move much faster when you jump. was that intentional?

Kitaiko, man you really need to do something about variable names. i think i figured some of them out...

i: x coordinate on the map picture.
j: y coordinate on the map picture.
sp: horizontal movement speed.

that's about it, and i don't get the one called "first" either, nor can i figure out any reason at all why i couldn't move it up a few lines to before the for loop, since it isn't even used inside the for loop anyway. oh well.

Waxycat
01-26-2002, 04:50 PM
and, ok i think i figured it all out now... jr is the Jumping Resistance, or something, and you've got an auto-integer-round-off that makes it a little confusing but it makes sence now.

Squirm
01-26-2002, 06:19 PM
i and j are both common names for integer variables used in loop counters. Whenever I need an integer variable, I start with i then if I need another I choose j and then maybe k. I call them general-purpose variables, but they are also commonly used as alternatives to x and y because these variables might already exist (such as in a Form_MouseDown event) or when dealing with vectors.

:)

Iceplug
01-28-2002, 09:24 AM
iceplug, what r u running 2000? you forgot to uncheck the recursive folders or whatever and when i unzip it's in like 34857340 subdirectorys. anyway, you seem to have sped it up a lot, it was running very sluggish before. i still can't move very fast hardly at all, you move much faster when you jump. was that intentional?


I thought I did it the same way as I did the last attachment. I was only using Win98.
I really didn't do much to the game. I just updated it so that there would be more enemies and that Mog can jump forward without hitting the direction button while in the air.
:confused:

Teric
01-28-2002, 09:25 AM
Iceplug-Cool additions to your game. They make it a TON more difficult. :-) The black guys blowing up into flames is a nice touch.

However, there's a problem with your game. When a purple guy hits the floor, the program breaks and says 'Type Mismatch'. The line it breaks on is as follows:
If xb.Tag = 0 Then xb.Visible = False
I went into the immediate window to check the value of xb.tag:

? xb.tag
-352.-72.4

I hope this helps.

Iceplug
01-29-2002, 07:44 AM
Argh! :mad: I need to check that. I may have some time to check that.
It worked fine on my computer.

Iceplug
01-30-2002, 07:49 AM
I think it might be the part where it says
If xb.Tag = 0 :o
and since Tag is a string, the *if xb.Tag = 0* should be *if xb.Tag = "0"*.
It worked fine on my version of VB6.

Kitaiko
02-09-2002, 05:28 AM
hey, thats a really great game!, i tried adding enemies to mine but my variables stuffed me up lol. You basically got all of the variables right, and i use first so when the program runs through the first time, it sets out what all of the numbers should be, so its like:

if first = 0 then
x = 10
y = 10
first = 1
end if

Waxycat
02-09-2002, 08:09 AM
yeah i know, i did a bunch of modifications to it, cause you had a bunch of things in a loop that only needed to be done once, and that first stuff could be eliminated by making those variables global and putting that code in the form_load.

Iceplug
02-09-2002, 02:27 PM
Well, I made it back home and I put the quotes around the zero this time - not really an update.:p

Kitaiko
02-12-2002, 04:43 AM
ha thats good

Iceplug
02-13-2002, 08:33 AM
Hmm... It may be possible for me to eventually post the whole game up here. Each level can be sent one-by-one in each attachment. Well, there are 42 levels and I'd probably get beat up by someone for attaching too much stuff.:o :D
I did want to update this a little more. :)

ardman
02-13-2002, 08:39 AM
Alternatively, you could upload your levels to some web space and attach the hyperlink to a thread. This would save a lot of time.

Neil :D

Iceplug
02-13-2002, 08:43 AM
Would this require getting a website? I don't have one.
:(

ardman
02-13-2002, 08:46 AM
No. If you try http://www.cjb.net . This gives you a certain amount of free web-space and then you can just upload the file. This will then give you a web address where the file is.

Neil :D

Iceplug
02-13-2002, 08:48 AM
Hmm. Interesting. I may try it when I have some free time.;)

Osiris
02-28-2002, 11:32 AM
so, are you people gonna have sorta like a contest
to see which one is the best platform game (mario like right?)
cause if it is i'm up for it :D, just to let you know in advanced
, all my programs are not serious...

Iceplug
03-01-2002, 07:52 AM
How about if I (attempt to) post a poll right now?
;)

Osiris
03-01-2002, 03:36 PM
yeah,
making a poll would be great!

Osiris
03-01-2002, 03:37 PM
did you know you could edit these posts?

Computer_Guy
03-01-2002, 05:17 PM
I thought that http://www.cjb.net was just used for URL relocating. For instance, your website's URL is http://www.geocities.com/myname/mypage.html, where you could make it
http://computerguy.cjb.net, much simplier.
But maybe you can upload things, just putting in my two cents.
Ed

Computer_Guy
03-06-2002, 04:54 PM
I don't have long to post this...but I'm doing a side scrolling fight game, like the old Double Dragons, and I was wondering how Kitaiko loads his maps, or some general ideas on another method, and if Kitaikos is pretty much efficient.

BTW, nice Physics in jumping!!!

Well, gotta run, my 2 cents on the fly.
Ed

Kitaiko
03-07-2002, 03:33 AM
my method of drawing maps is far from effeciant. It draws the entire map over the background, then saves it as a bitmap, then it zooms in on wateva part of the level the character is on. If i were u i would use a different method

Kitaiko
03-07-2002, 03:41 AM
That little candle guy gets around!

Computer_Guy
03-07-2002, 06:19 AM
Well, thanks for telling me that. Honestly, though, you oughta name the objects on your form and things, but that's besides the point. Thanks for telling me how it worked, and your suggestion to choose another method, I guess I'll just try that then.
Thanks a lot, I'll be back with more questions / answers for the forum...
Ed

tinytim
03-08-2002, 10:54 AM
i cant compile it what library are you using

If Contact(xu, Plyr) Then

it doesn,t understand contact

Iceplug
03-08-2002, 03:58 PM
Whoa. My game. :)

Contact is a boolean function that should be in the module that was included in the zip file checking to see if two objects touch. It must be there. I included it! If it's not there, might I suggest downloading another version. But it should be there.:confused:

Iceplug
04-02-2002, 07:47 PM
OK. I added a few updates this time... I added two different enemies which both travel in some sort of rectangle or rhombus.
Also, I added a warp portal. :)

...Gee, I hope my attachment is here...

...unfortunately, the wrong attachment.
Let's try this again.:)

Kitaiko
04-05-2002, 07:07 PM
Your games are always good :)

Pookie
04-05-2002, 11:35 PM
Hmmm, Maybe I don't know how to play this platform game, but I can't get past the first bit of lava? :mad:

Oh and that music is bloody annoying. :D

Iceplug
04-06-2002, 11:56 AM
Are you experiencing technical difficulties with my game?
Can you not jump? The Spacebar and arrow keys do not work?

If the music is annoying you, turn the volume off. There's a volume control under the custom menu of the Windows Media Player - if you can find the player. It's somewhere in the top right corner. Or you can delete the music. WMP doesn't care if its file doesn't exist, does it? Of course, the music is bloody ear candy on my computer. :p

Your games are always good

Thanks. I try (too hard, j/k). This was just a few upgrades. I already have an enemy that will swoop down and attack like a bat - so the enemies are more interactive. :D

Pookie
04-06-2002, 08:40 PM
I know that the spacebar is for jump and the left and right arrows to move, just that I can't jump from the left side to the right side of the first block where the lava is, so wondering if there was a trick to it...

Kitaiko
04-06-2002, 09:19 PM
I made another side scroller using DX8. This one has enemies in it.
The keys are up, down and left and you have to jump on the enemies to kill them.
ok im going to link this to PSC to save space, cause I have already put it on there.

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=33545&lngWId=1

Iceplug
04-07-2002, 04:58 PM
Pookie - Um... did you jump to the higher platform above where you start? Seems like my game is not adapted well to your computer or you are not an experienced platform gamer like me.
I just made a monster that travels in a strange scalene triangle... but I may not be able to post it.

Pookie
04-07-2002, 08:09 PM
I see what I'm doing wrong, I have to keep holding down the left or right button after jumping so that the mog moves quicker in the air.

Before I was just tapping the direction once thinking that was the logical way for it to jump. :-\

Iceplug
04-08-2002, 07:46 AM
Did you complete it yet? :)

Pookie
04-08-2002, 08:06 AM
Complete it????
I didn't even get a quarter way through it....

It's probably not that hard, I'm just lazy. :)

Iceplug
04-08-2002, 08:07 AM
Did you play the other files that were somewhere else in this thread?

Pookie
04-08-2002, 08:09 AM
ER, not sure. :)

There are so many threads with updates of games that I have no idea, I only downloaded the last one in the thread.

Computer_Guy
04-08-2002, 02:55 PM
Kitaiko, you're game looks really good, but it runs so fast on my machine, that I die or can't stay on the platforms, I'm going to have to slow down the timers. It looks good though, keep up the good work ;)
Ed

Iceplug
04-11-2002, 08:22 AM
OK. Just a simple update - seeing how I'm not at home (as shown in location). I added a MDIform to provide a television set-like appearance to my game.
Any problems? :):cool:

Pookie
04-11-2002, 09:21 AM
Heh.

Now it runs too slow!!! :(
You should also fix it so that when you die, you don't have to keep restarting the program again... and again... and again. :D

Iceplug
04-11-2002, 10:42 AM
Really? Too slow? Oh, well.
I'll go ahead and add the infinite life system without the MDIForm - I thought it looked cute with the screen except that I couldn't see the time and various pitfalls lingering just off the screen. So the MDIForm idea has crashed and burned... a simple update.
I know exactly what to do. Reload the form in the EndLife procedure - what I do in the game.:)

Waxycat
04-11-2002, 10:55 AM
It probably has to do with his video card or processor. If you want it to run the same speed on all machines, you should really have a delay between each calculated update, and then only redraw the screen if it's done with the previous frame.

Iceplug
04-11-2002, 11:09 AM
I seem to remember Pookie having a slow computer display or something similar... but the MDIForm idea will be buried. :(

Pookie
04-11-2002, 11:33 AM
Actually I have an Athon XP 1700+@1.5 Gig and a Geforce Ti 4600 Video card. :D

But your program doesn't use the video card at all so having a top of the line one isn't going to help here. :)

Mind you, I didn't compile it and had a few things running in the background. Unless it was my mistake and it was running the same speed as last time. :-\

Iceplug
04-11-2002, 03:48 PM
OK. I put the infinite life system in and executed the MDIForm - actually I think it's still in that zip file. Oh, well.
I hope it works... I couldn't test it because there are paparazzi in the computer lab. :eek:
I didn't compile it and had a few things running in the background
A few? Like the internet, MS Word, Adobe, a realtime game, Minesweeper, Notepad, another internet window (popup), and then this forum? :p

Pookie
04-11-2002, 09:23 PM
You forgot to mention Winamp, ICQ and Paint Shop Pro as well.

I think 256Mb of DDR Ram ain't enough anymore so must be time to buy another stick. :D

Yeah the game works fine. Just have to keep hitting that **** enter key each time I die though. :(

Iceplug
04-12-2002, 07:38 AM
Wow. How many times do you die?
At least it worked... I'm glad I did it right.
;)

Pookie
04-12-2002, 08:19 AM
It was around 20 times, I made it half way though the level and that's about as far as I got. :D

Iceplug
04-12-2002, 02:31 PM
Wow. Halfway being at the top of the level before you fall to the left? Well, if you finally complete, let me know how many tries...:D

Pookie
04-12-2002, 07:37 PM
It was around where the fist big grey up arrow was.

I haven't played it since then but if I did, I would estimate it would take around 4000 tries. :D

Iceplug
04-13-2002, 08:55 AM
4000? Seems you are not a true platform game expert like moi.
:D. Hee hee... j/k

Pookie
04-13-2002, 11:19 AM
I'm getting old. :(

Iceplug
04-13-2002, 12:08 PM
Yep. The big 4. :D You're on the downside of the hill. :(

Pookie
04-13-2002, 10:21 PM
:mad:

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum