Make goomba stop and play sound effect when hit by sword

Description: Internal scripting system of SMBX-38A Engine based on the simple VB-like language
Moderators: Lx Xzit, Yoshi021, 5438A38A, Moderators, Semi-moderatos

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 11
Posts: 93
Joined: 15 Aug 2016

Post #1by Shadowblitz16 » 7 Oct 2016, 8:44

does any body know how to make goomba stop and play sound effect when hit by sword for a bit?

bump I'm trying to learn TeaScript but the lack of tutorials out there is not very helpful

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 11
Posts: 93
Joined: 15 Aug 2016

Post #2by Shadowblitz16 » 18 Jun 2017, 5:21

bump.
I would still like to know this.

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 11
Posts: 93
Joined: 15 Aug 2016

Post #3by Shadowblitz16 » 24 Jun 2017, 23:45

hello? no wonder very few can use teascript.
its very undocumented, there are no tutorials out there, and NO ONE ANSWERS ANYBODIES POST!

I am trying to learn but the lack of enthusiasm in this community to help anybody is horrible.

PLEASE CAN SOMEONE ANSWER MY QUESTION!?

MidoriNeko M
Count
Count
Avatar
MidoriNeko M
Count
Count
Age: 17
Reputation: 82
Posts: 297
Joined: 26 Apr 2015
Location: Planet Caturn
Website Google+ Skype YouTube

Post #4by MidoriNeko » 25 Jun 2017, 12:11

Maybe nobody knows how to do it, or you didn't explain clearly what you want. These may the only reasons your question remains unanswered. We usually don't ignore questions without a reason. :(
Image
Current Project:
Image
Website: https://supermariobrosxgreendanedition.alle.bg

You've cat to be kitten me right meow!

Image
Image
Image


I Support:
Image
Image

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 11
Posts: 93
Joined: 15 Aug 2016

Post #5by Shadowblitz16 » 8 Jul 2017, 0:51

yes but I don't know that reason unless someone tells me.

PK Esper F
Lord
Lord
Avatar
PK Esper F
Lord
Lord
Age: 12
Reputation: 105
Posts: 520
Joined: 22 Aug 2016
Location: The sky
Website Facebook Google+ Twitter

Post #6by PK Esper » 9 Jul 2017, 14:19

I'll try to make one since I'm learning to scripting.
Btw, I have a question. What do you mean by "play sound effect when hitted by a sword"? Change the sound effect?
why i hadn't been in this forum for long when i used to be a super active person
avatar is basically baldi from tumblr
Formerly known as RSupertheGreat.
ImageImage
What I support
ImageImageImage
Personality
Yes, I'm a girl. If you guys are thinking I'm a boy.
I hate most people.
I'm a developer (and a beta tester of):
Image
Image
My level/episode playthrough thread: http://wohlsoft.ru/forum/viewtopic.php?f=29&t=2185

Catskart M
Count
Count
Avatar
Catskart M
Count
Count
Age: 20
Reputation: 140
Posts: 258
Joined: 29 Nov 2015
Location: France

Post #7by Catskart » 10 Jul 2017, 12:27

Create a script with that :

Code: Select all

with npc(sysval(param1))
if .health=1 then
.x=.x-.xsp
call AudioSet(2, thesoundid, 0, "")
end if
end with

Replace thesoundid by the id of the sound found in level settings->Music&Sounds.

Configure your goomba like that :
Image
Image

Don't forget to activate "Parallel Execution".

Voilà.

Shadowblitz16
Topic author, Close friend
Close friend
Shadowblitz16
Topic author, Close friend
Close friend
Reputation: 11
Posts: 93
Joined: 15 Aug 2016

Post #8by Shadowblitz16 » 21 Jul 2017, 3:00

ok cool thankyou

EDIT: no this permanently stops the npc from moving I need it to only pause for a second unless stabbed again


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest