Be a Supporter!

whats wrong with this script?

  • 268 Views
  • 6 Replies
New Topic Respond to this Topic
Wolfos
Wolfos
  • Member since: Jan. 19, 2008
  • Offline.
Forum Stats
Member
Level 25
Game Developer
whats wrong with this script? 2009-07-21 14:22:50 Reply

it gives a syntax error
if (ball_mc._x > (video)) {

its as2 btw

WhoknowsmeaUdiO
WhoknowsmeaUdiO
  • Member since: Apr. 11, 2007
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to whats wrong with this script? 2009-07-21 14:26:06 Reply

At 7/21/09 02:22 PM, robin1232 wrote: it gives a syntax error
if (ball_mc._x > (video)) {

its as2 btw

I don't think you know what you're doing.
Anyways,

if(ball_mc._x >(video._x)){

?


In case you haven't noticed yet, this isn't my main anymore. PM me here.

BBS Signature
knugen
knugen
  • Member since: Feb. 7, 2005
  • Offline.
Forum Stats
Member
Level 42
Programmer
Response to whats wrong with this script? 2009-07-21 14:26:13 Reply

video._x

?

Wolfos
Wolfos
  • Member since: Jan. 19, 2008
  • Offline.
Forum Stats
Member
Level 25
Game Developer
Response to whats wrong with this script? 2009-07-21 14:28:34 Reply

I know what Im doing, this is just the part with the error, and video is a variable I declared earlier in the script, if video._x was the problem, it would give a different error

WhoknowsmeaUdiO
WhoknowsmeaUdiO
  • Member since: Apr. 11, 2007
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to whats wrong with this script? 2009-07-21 14:36:17 Reply

Works fine with me. Seriously, give more info!
Saying "gays dis kode isnt working" and posting a line of code really is stupid.

video = 1;
if (ball_mc._x > (video)) {
	trace("hi");
};

In case you haven't noticed yet, this isn't my main anymore. PM me here.

BBS Signature
Wolfos
Wolfos
  • Member since: Jan. 19, 2008
  • Offline.
Forum Stats
Member
Level 25
Game Developer
Response to whats wrong with this script? 2009-07-21 14:38:50 Reply

At 7/21/09 02:36 PM, WhoknowsmeaUdiO wrote: Works fine with me. Seriously, give more info!
Saying "gays dis kode isnt working" and posting a line of code really is stupid.

video = 1;
if (ball_mc._x > (video)) {
trace("hi");
};

I dont know what you did, but that worked...
I copy pasted that second line into my script and it started working

WhoknowsmeaUdiO
WhoknowsmeaUdiO
  • Member since: Apr. 11, 2007
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to whats wrong with this script? 2009-07-21 14:40:34 Reply

At 7/21/09 02:38 PM, robin1232 wrote: I dont know what you did, but that worked...
I copy pasted that second line into my script and it started working

Evidence you don't have a clue what you're doing. Moar infoes next time please!


In case you haven't noticed yet, this isn't my main anymore. PM me here.

BBS Signature