Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

scripting

A topic by Andre333key created 70 days ago Views: 114 Replies: 9
Viewing posts 1 to 2

yo does anyone know how to script punching, and combat. Like it has tutorials on health bars and shooting but i only want my enemy to be hurt when I activate my punching animation while i collide with him.

Developer(+1)

You can use variables. For example, when press the punching key, change animation to punching, and also set the variable "punching" to true. Then, in the collision, check if the variable "punching" is true. When the punching animation finishes, set the variable to false.

If you need the collision to be only in the player hand, instead of the whole sprite, you can create an invisible object, and always set its position relative to the player position.

(+1)

 wow thank you so much, it really means a lot to actually get to talk to the developer. I'm surprised that you responded also im surprised more ppl don't already know about this. I love watching apps and ideas grow from the ground up you have an amazing product its complicated because in new, but still very user friendly.  I'm telling everyone I know about this so i can have bragging rights. I absolutely will try this.

Developer(+1)

Thank you very much! There are many tutorials on the EasyGameMaker YouTube channel, that may help learning how to use the engine.

yeah, I'll check it out.

sorry to bother you Gamemaker, I tried to do what you said but very difficult, I'm very very new to this. I actually found out that it's not that the punching animation didn't work it's that I have to many animations for the same direction competing for priority. I have a walking, punching, and idol animations for when the object moves in a specific direction, however they overlap, and I don't know how to prioritize the animations. 

Developer(+1)

You can create the priority rules with the visual scripts.

If you want you can send me the JSON of your game in the EasyGameMaker Discord channel, that I can check and try to help.

That would be awesome I'll send it to you. i hope its not too much

ok here it is sorry it took so long i was mad nervous also how do i send it in JSON formating

Developer (2 edits)

To export to JSON format, click on the "Export" button, and then click in the "Download JSON".

To send me the JSON... I think it's not possible to send attachments here in "itch.io", but you can send me in Discord (https://discord.com/invite/2ueUqGBMYE). Or you can send it to Filebin (https://filebin.net/) and share the URL here.