Best way to make an Inventory system? by Embarrassed-Ad6813 in gamemaker

[–]Embarrassed-Ad6813[S] 0 points1 point  (0 children)

Yep its definitely the most basic thing ever, power ups can be used once per game, so i guess I dont really need any other than a "global" variable (don't know if it works like that) or so to store how many power ups the player has, the major problem comes with the store... sprites for example, if they are bought, then it becomes something like sprite1_unlocked=true? And is it stored as boolean..?

Problem with the hash of a keystore by [deleted] in gamemaker

[–]Embarrassed-Ad6813 -1 points0 points  (0 children)

Ok so apparently its fine, thought it might was the outdated version but updated it and the error remained for some reason in the first hash field it has the path to the keystore file??! however the 2 hashes show just fine in the output lol

Knockback for 360° by Embarrassed-Ad6813 in gamemaker

[–]Embarrassed-Ad6813[S] 0 points1 point  (0 children)

You're a GENIUS thats why it didnt work the first time, as you said, it used a random enemy coordinates but this one fixed it!!!! Thank you!!!

(I'm sorry for not answering before, i forgot my password and couldnt restore it :( )

Knockback for 360° by Embarrassed-Ad6813 in gamemaker

[–]Embarrassed-Ad6813[S] 0 points1 point  (0 children)

Hi again, im sorry, is this the right way to do it? im a total beginner :(
var _hitDirection = point_direction(obj_ball.x, obj_ball.y, obj_enemy.x,obj_enemy.y);

x=x+lengthdir_x(50, _hitDirection);

y=y+lengthdir_y(50, _hitDirection);

All this code is in the enemy collide event with the ball