Added: 3 years ago
From: N46RECONXX
Views: 5,581
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (23)

Sign In or Sign Up now to post a comment!
  • can you show the whole code  for

    private Sub Form_KeyDown(KeyCode as Integer, Shift as Integer)

    i need to move the sape thanks

  • mine wont work for some reason, tried twice now

    well works for left and top

  • mine wont work for some reason, tried twice now

  • it didn't work for the timer being 1000, but it did for 1 meaning it needs to be constantly checking, right?

  • For Some Reason It Stops The Shape For Left And Right, But Not For Up And Down... So, Idk, But I Might Of Missed Somthing Because Of That Anotiation Through Whole Vidio >_<

  • hey u dont have to change timer just in code instead of equal write > or < and that would do! i m begginer with vb but u should realy know that!

  • Tip for people. If you want something to happen when you go into some like you want to run into a label or something and you want it to go to a new place. Put this code in a timer

    If Image1.Top = Shape1.Top Then 'Image1 is my person Shape1 is the thing i run into

    MsgBox "Worked" 'This is what will happen.

    Image1.Top = Image1.Top - 90 'this will move the character back so a lag loop wont happen

    End If 'ends the if

  • Music = :)

  • Option Explicit FTW

  • can you make this for download?

  • i would do that:

    If Shape1.Top >= Shape2.Top then

    Shape1.Top = Shape2.Top

    End If

    same thing with the other 3 sides.

    With my solution the ball wouldnt shake around if it collides.

    Just a comment for other people, you made this one almost 2 years ago, i think u got better ;D

  • I can't make it work! why could it be?

  • Can you please make a chat spammer, a good one PPLLEEAASSEE?????

  • where is shape 2

  • Lol, shape two is the border, oops sorry wrong account.

  • sorri but this is some poor collision detection algorithm(if u could call it that), personally bruv you wouldnt implement collision like this in an RPG, tile based , or bounding rectangles (depending on your game)

  • why does the 10 to 1000 interval affects?

  • do you know how if my object goes over something it will enter a new form

  • in vb2008 you write

    if collision (objectname,otherobjectname) then

    me.hide

    form2.show

  • Never mind i fixed it lol

  • im having a problem...Heres the code i copied off of you for the "wall" And im getting Runtime error "424" and it highlights the code

    "If Shape1.Top = Shape2.Top Then"

  • hey good tutorial!

    what's the song in the background?

  • Thanks! the song is "Carry on my wayward son" by Kansas.:)

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more