[SOLVED] Problem with my player

C

Caloxeno

Guest
So, I am following this tutorial https://www.youtube.com/playlist?list=PLUQ0xH2XyXgHWa-wC1X1q2sG8lzEuqzGe (Made by Making Games 101), and I am in the perfect top collisions episode; And he made us change the step event code of the player, but now, the player walks super slow in the top and the left direction. It moves OK in the right and the bottom direction, thought. Any ideas? I left the project folder in my dropbox, there is a zipped and a not zipped version. The links are below:

Not zipped version: https://www.dropbox.com/sh/bhp8ao2rjcz1as7/AAA8cBGNcgnMNo9B4xXFgiI_a?dl=0
Zipped version: https://www.dropbox.com/s/yawx1mzfr6riwr3/Top Down Zombi Shooter.zip?dl=0

Some help would be really appreciated.
Thanks!
 
A

Aura

Guest
Instead of posting the entire file, please post only the relevant section, so that people don't have to download something in order to be able to help. You might want to use the Show Information button and copy-paste everything related to the player object here.
 
C

Caloxeno

Guest
Instead of posting the entire file, please post only the relevant section, so that people don't have to download something in order to be able to help. You might want to use the Show Information button and copy-paste everything related to the player object here.
Ok, HereĀ“s it:
Information about object: obj_player
Sprite: spr_player
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Create Event:
execute code:

//Variables
firing=false
walkingSpeed = 3;
rateOfFire=10;
hp = 100;

Alarm Event for alarm 0:
execute code:

firing=false;

Step Event:
execute code:

//Player Movement

hspeed = walkingSpeed * keyboard_check(ord("D")) - keyboard_check(ord("A"));
vspeed = walkingSpeed * keyboard_check(ord("S")) - keyboard_check(ord("W"));

//Player Death
image_alpha = hp / 100;
if hp <= 0
game_end();


Mouse Event for Glob Left Button:
execute code:

if (!firing)
{
firing=true;
alarm[0]=rateOfFire;
instance_create(x,y,obj_bullet);
}
 
Top