SwishTalk.com
 

Go Back   SwishTalk.com > .:: THE HELP DESK ::. > Actionscript Help

Reply
 
Thread Tools Display Modes
#1   Help a beginner  

Name: 
pelucas
Status: Offline
Rank: SWiSHer
Posts: 12
Old 02-05-2012, 04:37 AM Reply With Quote


(Translated from Spanish to English by google)

I have little time with Swish Max and I'm learning actionscript.

My first challenge was how to make 8 different cards,
to depart and be placed randomly.

Look for it in various forums and also a. Swi to help me understand its development.

From the forums I have had partial support and have not found one. Swi who had satisfied the conditions which required my project.

I found looking for a Flash file. Fla that brought together everything I wanted.

I got to 99% after a few modifications that would work with Swish Max.

How to make it work 100%, where are the errors in the actionscript?

As you will see there is always a card that runs out of place in the purification and get 2 errors.

Thanks and I hope your help.




Attached Files
File Type: swi naipes.swi (30.0 KB, 26 views)
 
View Public Profile Send a private message to pelucas Find all posts by pelucas Add pelucas to Your Contacts
#2    

Name: 
OutCast**NL
Status: Offline
Rank: SWiSHer
Posts: 647
Old 02-05-2012, 04:12 PM Reply With Quote


The errors are there because the variables haven't been initialized,..
about the rest of the script,.. looks like you're making things way to difficult for yourself,..

See attached example,.. that's how I would do it,..



Attached Files
File Type: swi naipes.swi (30.9 KB, 13 views)
 
View Public Profile Send a private message to OutCast**NL Visit OutCast**NL's homepage! Find all posts by OutCast**NL Add OutCast**NL to Your Contacts
#3   Puzzle game  

Name: 
pelucas
Status: Offline
Rank: SWiSHer
Posts: 12
Old 02-06-2012, 05:13 AM Reply With Quote


First thank you for your help.

question:
The arrow object loading the movie random rotation.
How to make each piece of the puzzle to load the movie with random rotation?

View file ....




Attached Files
File Type: swi puzzle3.swi (361.6 KB, 6 views)

Last edited by pelucas; 02-06-2012 at 06:59 AM..
 
View Public Profile Send a private message to pelucas Find all posts by pelucas Add pelucas to Your Contacts
#4    

Name: 
OutCast**NL
Status: Offline
Rank: SWiSHer
Posts: 647
Old 02-06-2012, 07:57 AM Reply With Quote


See attached example,..



Attached Files
File Type: swi puzzle3.swi (354.2 KB, 8 views)
 
View Public Profile Send a private message to OutCast**NL Visit OutCast**NL's homepage! Find all posts by OutCast**NL Add OutCast**NL to Your Contacts
#5   Wonderful!!  

Name: 
pelucas
Status: Offline
Rank: SWiSHer
Posts: 12
Old 02-06-2012, 11:30 AM Reply With Quote


Wonderful!! Great teacher OutCast ** NL, with you I am learning rapidly and easily. I do not want to abuse his amiability, want to expose another problem. Since doing that on having pressed on any of the pieces of the puzzle they rotate 90 ? I live together in file example of what I want.

(Once again pardon for my English. It is a literal translation of the Spanish)


Attached Files
File Type: swi puzzle4.swi (361.7 KB, 3 views)

Last edited by pelucas; 02-06-2012 at 11:39 AM..
 
View Public Profile Send a private message to pelucas Find all posts by pelucas Add pelucas to Your Contacts
#6    

Name: 
OutCast**NL
Status: Offline
Rank: SWiSHer
Posts: 647
Old 02-06-2012, 12:37 PM Reply With Quote


Not sure if this is what you're after,...
but see if attached works for you,..



Attached Files
File Type: swi puzzle4.swi (354.8 KB, 7 views)
 
View Public Profile Send a private message to OutCast**NL Visit OutCast**NL's homepage! Find all posts by OutCast**NL Add OutCast**NL to Your Contacts
#7   Illuminated pieces  

Name: 
pelucas
Status: Offline
Rank: SWiSHer
Posts: 12
Old 02-09-2012, 04:45 AM Reply With Quote


Question: On having spent the mouse on any piece shaded of the puzzle, this it was illuminated to see example in the file


Attached Files
File Type: swi puzzle5.swi (685.9 KB, 5 views)
 
View Public Profile Send a private message to pelucas Find all posts by pelucas Add pelucas to Your Contacts
#8   ex  
 
cycle1500's Avatar

Name: 
cycle1500
Status: Offline
Rank: Oberlin, Ohio, USA
Posts: 1,493
Mood: MEAN: Do's not play well
Old 02-09-2012, 05:18 AM Reply With Quote


Quote:
this it was illuminated to see example in the file
What you will need to do is to start with a bright file picture and build a cover (mask) over it. This way you can dim the picture till the mouse rolls over it. I'll work up an example for you.

Wayne


Attached Files
File Type: swi example.swi (45.3 KB, 6 views)
__________________
The Hairy One
Wayne helps those that helps themselves.

Last edited by cycle1500; 02-09-2012 at 05:31 AM..
 
View Public Profile Send a private message to cycle1500 Find all posts by cycle1500 Add cycle1500 to Your Contacts
#9    

Name: 
OutCast**NL
Status: Offline
Rank: SWiSHer
Posts: 647
Old 02-09-2012, 07:47 AM Reply With Quote


Another option would be to use the filter effects
see attached


Attached Files
File Type: swi puzzle5.swi (355.5 KB, 8 views)
 
View Public Profile Send a private message to OutCast**NL Visit OutCast**NL's homepage! Find all posts by OutCast**NL Add OutCast**NL to Your Contacts
#10   Change of position pieces puzzle  

Name: 
pelucas
Status: Offline
Rank: SWiSHer
Posts: 12
Old 02-09-2012, 12:04 PM Reply With Quote


do not stop to astonish at the knowledge of OutCast**NL.

Question: Always when we press two pieces any of the puzzle, these change his position.

See Example file


Attached Files
File Type: swi puzzle6.swi (364.3 KB, 4 views)
 
View Public Profile Send a private message to pelucas Find all posts by pelucas Add pelucas to Your Contacts
#11    

Name: 
OutCast**NL
Status: Offline
Rank: SWiSHer
Posts: 647
Old 02-10-2012, 04:24 PM Reply With Quote


See if attached works for you,..



Attached Files
File Type: swi puzzle5.swi (357.1 KB, 6 views)
 
View Public Profile Send a private message to OutCast**NL Visit OutCast**NL's homepage! Find all posts by OutCast**NL Add OutCast**NL to Your Contacts
#12   Step by step like creating puzzle  

Name: 
pelucas
Status: Offline
Rank: SWiSHer
Posts: 12
Old 02-13-2012, 01:23 AM Reply With Quote


1-Random position with rotation of the pieces of puzzle: finalized question.

2-To pass mouse over the pieces of puzzle they are illuminated: finalized question.

3-When pressing a piece of puzzle this defeat 90: finalized question

4-When pressing two pieces of puzzle these change of position: they change of position, but with small error, the pieces of puzzle in this action do not have to be illuminated

5-The shift of position of the pieces of puzzle serious with visual effect of flight

To see file


Attached Files
File Type: swi puzzle7.swi (528.6 KB, 12 views)
 
View Public Profile Send a private message to pelucas Find all posts by pelucas Add pelucas to Your Contacts
#13    

Name: 
OutCast**NL
Status: Offline
Rank: SWiSHer
Posts: 647
Old 02-15-2012, 11:12 AM Reply With Quote


If you want to animate the motion/ rotation, you need to re-write parts of the script,...
Cause now you are creating a completly different scenario,...

With animated motion, people mite accidently click a moving/ rotating shape and mess up the coordinates/ rotation
so you would need to build in a few conditionals to prevent users from doing that.

I'm out of town atm and don't have swish at hand,.. but I'll have a look at it when I get back.


just a tip: its always best to have the most complete scenario how things should work, before you start scripting,
cause small changes in the scenario often mean a lot of changing in the script/ scriptstructure.



 
View Public Profile Send a private message to OutCast**NL Visit OutCast**NL's homepage! Find all posts by OutCast**NL Add OutCast**NL to Your Contacts
Advertisement:





Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump