00:00
-:-
--:-- / --:--
Newgrounds Background Image Theme

PrincessTrashi just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

I need script help (if touched)

732 Views | 16 Replies
New Topic Respond to this Topic

IDK what to do. I am making a game, and i need some help. If touched or if too much damage is taken, i want it to go to a certain frame. Can you help me on this?


At 6/3/11 10:56 PM, BlakeMo wrote:

: I have no sexual orientation

: ANYTHING AND EVERYTHING HAS POTENTIAL TO BE BLESSED BY MY PENETRATION

BBS Signature

Response to I need script help (if touched) Feb 25, 2009


maybe something like this?

if (g.spikes.hitTest(this._x, this._y, true) { _root.gotoAndStop("GameOver"); }

-Matt

Response to I need script help (if touched) Feb 25, 2009


At 2/25/09 06:22 PM, Mattster092 wrote: maybe something like this?

if (g.spikes.hitTest(this._x, this._y, true) {
_root.gotoAndStop("GameOver");
}

-Matt

K.
Lemme try it out


At 6/3/11 10:56 PM, BlakeMo wrote:

: I have no sexual orientation

: ANYTHING AND EVERYTHING HAS POTENTIAL TO BE BLESSED BY MY PENETRATION

BBS Signature

Response to I need script help (if touched) Feb 25, 2009


Wait, where do i put it? In the frame or the body parts?


At 6/3/11 10:56 PM, BlakeMo wrote:

: I have no sexual orientation

: ANYTHING AND EVERYTHING HAS POTENTIAL TO BE BLESSED BY MY PENETRATION

BBS Signature

Response to I need script help (if touched) Feb 25, 2009


At 2/25/09 06:43 PM, Rockyusa wrote: Wait, where do i put it? In the frame or the body parts?

the code he gave you goes on the the part you want to test to be hit(touched)

you cant read that code and fuigure that out? if not then you may have trouble finishing the game


awww

Response to I need script help (if touched) Feb 25, 2009


At 2/25/09 06:51 PM, LostVoices wrote:
At 2/25/09 06:43 PM, Rockyusa wrote: Wait, where do i put it? In the frame or the body parts?
the code he gave you goes on the the part you want to test to be hit(touched)

you cant read that code and fuigure that out? if not then you may have trouble finishing the game

K. Thanks!


At 6/3/11 10:56 PM, BlakeMo wrote:

: I have no sexual orientation

: ANYTHING AND EVERYTHING HAS POTENTIAL TO BE BLESSED BY MY PENETRATION

BBS Signature

Response to I need script help (if touched) Mar 3, 2009


onClipEvent(enterFrame){ if(this.hitTest(_root.spikes)){ gotoAndStop(#); } }

replace '#' with the frame number you have the game over screen on, and replace 'spikes' with the instance name of what the spikes are called, this goes on the player's movie clip.

Response to I need script help (if touched) Mar 3, 2009


sorry about the double post, but don't forget that there should only be one enterframe function! gl.

Response to I need script help (if touched) Mar 4, 2009


I have a good one. ;)
SHUT UP BEFORE I STAB YOU!!
I need Voice help;.I need sutibal voices for:Splash woman,Protoman,Dr.Light,Cutman,Zero,and Roll.
Could you find some willing to help?

I need script help (if touched)


Megafan2008

(Yeah,keep starin,I might do a trick!)

BBS Signature

Response to I need script help (if touched) Mar 4, 2009


At 3/4/09 04:00 PM, Megafan2008 wrote: I have a good one. ;)
SHUT UP BEFORE I STAB YOU!!
I need Voice help;.I need sutibal voices for:Splash woman,Protoman,Dr.Light,Cutman,Zero,and Roll.
Could you find some willing to help?

i have a better one, stop hijacking other peoples threads, go away.
and to the thread starter,google hitTests. the other guy said to use a hitTest, it wont be set up the same as yours, so how about we dont "put" it anywhere and you observe the code and adapt it to your needs? sounds good huh?


Grah i feel so unknown, SK8MORE god damn :/ EvanHayes seems like a much more serious name than sk8more,so i changed it.

Response to I need script help (if touched) Mar 5, 2009


how 'bout you stop insulting me! I am NOT hijacking this thread idiot!
>:(


Megafan2008

(Yeah,keep starin,I might do a trick!)

BBS Signature

Response to I need script help (if touched) Mar 19, 2009


At 3/5/09 09:38 AM, Megafan2008 wrote: how 'bout you stop insulting me! I am NOT hijacking this thread idiot!
>:(

Yes you are, he meant "action script", not talking.
You must learn these phrases.


BBS Signature

Response to I need script help (if touched) Apr 5, 2009


Look I think of the title then a line.plz knock it off.
:*(
I am always mosunderstood.


Megafan2008

(Yeah,keep starin,I might do a trick!)

BBS Signature

Response to I need script help (if touched) Apr 7, 2009


At 4/5/09 10:36 PM, Megafan2008 wrote: Look I think of the title then a line.plz knock it off.
*(
I am always mosunderstood.

Sorry about that, little guy.
But next time, read the post.


BBS Signature

Response to I need script help (if touched) Apr 8, 2009


At 4/7/09 08:57 PM, FullMoonClock wrote:
At 4/5/09 10:36 PM, Megafan2008 wrote: Look I think of the title then a line.plz knock it off.
*(
I am always mosunderstood.
Sorry about that, little guy.
But next time, read the post.

*Blinks*


Megafan2008

(Yeah,keep starin,I might do a trick!)

BBS Signature

Response to I need script help (if touched) Apr 13, 2009


At 4/8/09 03:40 PM, Megafan2008 wrote:
At 4/7/09 08:57 PM, FullMoonClock wrote:
At 4/5/09 10:36 PM, Megafan2008 wrote: Look I think of the title then a line.plz knock it off.
*(
I am always mosunderstood.
Sorry about that, little guy.
But next time, read the post.
*Blinks*

*Blinks*


BBS Signature