0
Answered

How to use shooter module to decrease an attribute from the stat module?

Tathunder 6 months ago in Shooter updated by Marti (Lead Developer) 6 months ago 4

Hi, I am new to game creator and have been trying to figure out how to make it do what I want.

I have bought several of the modules and had a look at all of the example scenes.

Right now I am struggling to get the shooter combat scene to have the player take damage on hit.

A point in the right direction would be greatly appreciated. A tutorial more so... ;)


Many thanks in advance to anyone who can help me.

Unity version:
latest LTS build
Game Creator version:
latest version

Answer

+1
Answer

Certainly.

Stats component on the player with "health" attribute set up in game creator's preferences.

Trigger, "on shot hit" on the player object which leads to the action "Subtract attribute health of Player".

Easy peasy lemon squeasy. Game Creator is really great if you dislike writing line after line of code. Enjoying it immensely.

I got it working! Sorry about that.

let us know what you did, so others will know about this and how you solved your problem

+1
Answer

Certainly.

Stats component on the player with "health" attribute set up in game creator's preferences.

Trigger, "on shot hit" on the player object which leads to the action "Subtract attribute health of Player".

Easy peasy lemon squeasy. Game Creator is really great if you dislike writing line after line of code. Enjoying it immensely.

Answered

Glad you managed to find the answer! :-)