Jump to content

SupeMario VB

- - - - -

  • Please log in to reply
21 replies to this topic

#1
Paulo_Jorge

Paulo_Jorge

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
hi, i'm making a school project where i recreate the famous SuperMario game.

i'm in the fase of maping and walking code

you any of oyu have ideas, codes or useful links/resources please post here. i need all help possible.

THANKS

#2
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
You may try these.
vbProgramming | VB.NET Tutorials

Abut half way down the page there's a game tutorial section.
Good luck ~ Committed.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#3
Paulo_Jorge

Paulo_Jorge

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
thanks man.

#4
Paulo_Jorge

Paulo_Jorge

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
one thing. in SuperMario game, when we are moving, the map is also "moving/changing", do you know how i can do that in visual basic.

i wont make a huge screen xd !!

if anyknow now, please post

#5
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
This isn't VB code but I think you'll get it:
While(Mario.Speed >= 1)
background.Location.X -= 1

Something like that. Just check if Mario is moving, and if so, move the background.
~ Committed.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#6
Paulo_Jorge

Paulo_Jorge

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
humm, something like that yes; thanks; i needed the idea

thanks again,

#7
Paulo_Jorge

Paulo_Jorge

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
I still couldnt make the map move , but i trying. now i need another thing. when we jump with mario, it is supposed that he falls to a flat surface, a block or eventually the floor,

he cant stand in the air. i've tried "if statementes" and haven't succed yet. any ideas..

thanks.

#8
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
Well im not really an expert in VB, Im not sure how to create a gravity.

You can try this although its in C#
Gravity and Collision Simulation in C# - CodeProject

~ Committed.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#9
Paulo_Jorge

Paulo_Jorge

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
hi. my mario game is going very well, so far, taking into account my knowledge of visual basic.
i have many picturebox(s), one is the character and one of the others are the famous yellow coins.

and i'm using the following code;

if Character.Bounds.IntersectsWith(Coin.Bounds) then
label2.text +=10
end if

when the character hits the coin his score increase 10 points. the problem is: while the character is is the position of the coin, even when the coin is invisible, its keep adding points. when the character leaves that position its stops. i'm stressed about this, xD.

any ideas ? ?

thanks

#10
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
Thats because you never delete the coin, which I would assume you would want to do right?
Should be something like,
 
if Character.Bounds.IntersectsWith(Coin.Bounds) then
label2.text +=10
pictureBoxCoin.Dispose()
end if 
~ Committed.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#11
Paulo_Jorge

Paulo_Jorge

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
humm. thanks. i didn't knew that we can delete the coin and the didn't knew the "dispose" command .

THANKS.

#12
Paulo_Jorge

Paulo_Jorge

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
i've tried but it didn't worked for now




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users