r/visualbasic • • Jan 11 '13

Playing with Zelda sprites in VB ^^

http://www.youtube.com/watch?v=zEu6vuf0D7I
10 Upvotes

5 comments sorted by

4

u/CharlieFacee Jan 11 '13

I'm not very good at coding i just do it at college(not uni) for an A level

I just used 4 timers among some other things

one of them just gives me the position of the player

one of them moves the "enemy" towards the player depending on its posistion

I use another timer to tell me if i need my enemy to keep moving in a certain direction to get closer to the player

and the last timer i use to tell me if the player position is the same as the enemys

it's very simplistic but thankyou :)!

1

u/TheBarquo Jan 11 '13

Very nice!

2

u/CharlieFacee Jan 11 '13

Thankyou! :D Something to waste an hour on eh? :)

2

u/DeusInnomen Jan 23 '13

Well done for such a small amount of work. I've been writing code for years, and one of the few places I haven't delved into yet is game programming. Other than writing the start of a chess AI long ago for a C++ class.

And truly, simplistic is often the best route to start with. :)

3

u/vishtr Jan 11 '13

wut... how? code example? I'm damn impressed.