Hello, I just want to make sure you are aware this is a beginners project I am having. I am not using XNA.Framework, DirectX, Unity or any game engines, I am making my own game completely from scratch using windows forms in VB.net, so far its alright- however:
Question 1: When you move around the screen there is a little lagg on the backround image of the form,
Screenshot. In the picture you can see the player moving downwards out of a wall- but the wall slightly follows for half a second. The player is a picturebox, on top of a form with a backround image.
Question 2: Is there a way to have the picturebox move at a 45 degree angle? Not just up an down? My current player movement coding:
Public Shared KeyboardKeysPressed As New HashSet(Of Keys)
Public Shared Sub OnFps(sender As Object, e As EventArgs) Handles Framerate.Tick
If KeyboardKeysPressed.Contains(Keys.W) Then
mainForm.Player_Picture.Top -= 8
ElseIf KeyboardKeysPressed.Contains(Keys.A) Then
mainForm.Player_Picture.Left -= 8
ElseIf KeyboardKeysPressed.Contains(Keys.D) Then
mainForm.Player_Picture.Left += 8
ElseIf KeyboardKeysPressed.Contains(Keys.S) Then
mainForm.Player_Picture.Top += 8
End If
End Sub
Please note I am a beginner at this, so I might not understand a solution right away and such.
Thank you in advance!