The variables for my character:
grav = 0.35;
hsp = 0;
vsp = 0;
jumpspeed = 13;
movespeed = 7;
global.movv = 0;
hp = 100;
global.up=vk_up;
global.down=vk_down;
global.left=vk_left;
global.right=vk_right;
Player controls:
if movv = 0
then
{
key_right = keyboard_check(vk_right);
key_left = -keyboard_check(vk_left);
key_jump = keyboard_check(vk_up);
}
if movv = 1
then
{
key_right = keyboard_check(ord("D"));
key_left = -keyboard_check(ord("A"));
key_jump = keyboard_check(ord("W"));
}
movv change:
///make movv change. Movv actually stands for movement value? Redundent, I know
if keyboard_check_released(ord('C'))
{
movv += 1;
}
the movv change is still a work in progress and is more of like a placeholder until I can figure out how to carry variables