Tips, tricks and info

Find detailed help from the AAO community, or write your own tutorials.

Modérateur: EN - Forum Moderators

Re: Tips, tricks and info 

Message par enigma » Sam Avr 06, 2013 12:11 pm

Ferdie, can you explain the 2nd one to me? I've been trying it but it's just not working...
ImageImageImage


Reminder that Dancecat loves you~!
Avatar de l’utilisateur
enigma
 
Message(s) : 3402
Inscription : Dim Avr 24, 2011 11:05 am
Localisation : dancecat's heaven
Genre: Masculin
Langues parlées: miaou

Re: Tips, tricks and info 

Message par Ferdielance » Sam Avr 06, 2013 11:35 pm

Steps to do the same examine with different images: (Improved version for more readable code)

1. Create multiple examine images in the same directory on your imagehost. Photobucket doesn't work very well for this because it adds a lot of gibberish to the ends of filenames.

2. Create a variable called filepath with the value of your directory. So if an image is:

http:\\www.fileden.com\numbers\morenumbers\image0.png

filepath sould be defined as:

http:\\www.fileden.com\numbers\morenumbers\

3. Create a variable called currentImage. This is where you'll store the image you want to examine. You can change it whenever you want to use a different screen in your engine. If your first image is image0.png, set it to image0

4. Create an examine frame with the background set to the EXPRESSION (check the expression box): filepath . currentImage . '.png'

5. Whenever you want to change the image, define currentImage as the picture you want to use.

6. You can't use the button to set the examinable coordinates; you need to manually enter the x1, x2, y1, y2 coordinates. One way to do this is to make another examine frame using your image, figure out what the coordinates are using that, copy them to the first frame, then delete the extra examine frame.

The practical use for this is when you're making an engine that has a lot of screens like this:

Image
Image
Image

and so on.
"A slow sort of country!" said the Queen. "Now, here, you see, it takes all the running you can do, to keep in the same place. If you want to get somewhere else, you must run at least twice as fast as that!"
Avatar de l’utilisateur
Ferdielance
 
Message(s) : 762
Inscription : Dim Mars 09, 2008 12:46 am
Genre: Masculin
Langues parlées: English

Re: Tips, tricks and info 

Message par Bad Player » Mer Avr 10, 2013 1:45 am

Ferdie, how long are your fades? You never actually say xP (I know there's 500/1000/1500 in the file names, but... don't want to make any assumptions ^^")
Avatar de l’utilisateur
Bad Player
 
Message(s) : 7211
Inscription : Mer Mai 20, 2009 10:53 pm
Localisation : Under a bridge
Genre: Masculin
Langues parlées: American

Re: Tips, tricks and info 

Message par Ferdielance » Mer Avr 10, 2013 2:01 am

Fades last that number of milliseconds, then hold their current opacity for a second or so. This means that you can slip in, say, the 500 ms fade with any value from, oh, 50 to 60 cs, without worrying about the animation looping and giving a flicker. These animations don't loop.
"A slow sort of country!" said the Queen. "Now, here, you see, it takes all the running you can do, to keep in the same place. If you want to get somewhere else, you must run at least twice as fast as that!"
Avatar de l’utilisateur
Ferdielance
 
Message(s) : 762
Inscription : Dim Mars 09, 2008 12:46 am
Genre: Masculin
Langues parlées: English

Re: Tips, tricks and info 

Message par Enthalpy » Lun Fév 05, 2018 3:44 am

For Firefox users, a remedy for backspacing out of the page when in the editor: here.
[D]isordered speech is not so much injury to the lips that give it forth, as to the disproportion and incoherence of things in themselves, so negligently expressed. ~ Ben Jonson

Current AAO Development Priority: Issue #94: Grayscale Mode
Avatar de l’utilisateur
Enthalpy
Community Manager
 
Message(s) : 4368
Inscription : Mer Jan 04, 2012 4:40 am
Genre: Masculin
Langues parlées: English, limited Spanish

Précédent

Retour vers Tutorials

Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 1 invité