Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Reverse direction
From: Thorvald Neumann
Date: Thu, 20 Apr 2000 17:24:44 +0100

Hejsan!

At the moment I am building a small Flash game and I have a small
problem:

When a specific MC hits another MC, it shall reverse the
direction. In spite of reversing its direction, it just stops.

This is the script I used:

Set Property ("", X Position) = GetProperty ( "", _x ) - xSpeed
Set Variable: "sbootX" = GetProperty("/sboot",_x)
Set Variable: "sbootY" = GetProperty("/sboot",_y)
Set Variable: "walX" = GetProperty("",_x)
Set Variable: "walY" = GetProperty("",_y)
If ((walX > (sbootX - 33)) and (walX < sbootX) and (walY > (sbootY - 13)) and
(walY < (sbootY + 13)) and (GetProperty ( "/sboot", _currentframe ) = 1))
Set Property ("", X Position) = GetProperty ( "", _x ) + xSpeed
End If

What am I doing the wrong way? I have also tried to include a Tell
Target command in the if-clause, but this does not change stopping the
MCs course.

Best regards,

Thorvald Neumann

--
: Thorvald Neumann :
: Multimedia Developer :
: hrafnatmuenster [dot] de :
: ICQ #38948488 :
--



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Reverse direction, Robert Bleeker

Replies
  FLASH: site chek foto3.com, sahlan cherpitel

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]