Tips, tricks and info

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

Moderator: EN - Forum Moderators

User avatar
enigma
Posts: 3421
Joined: Sun Apr 24, 2011 11:05 am
Gender: Male
Spoken languages: miaou
Location: dancecat's heaven
Contact:

Re: Tips, tricks and info

Post by enigma »

Ferdie, can you explain the 2nd one to me? I've been trying it but it's just not working...
User avatar
Ferdielance
Posts: 778
Joined: Sun Mar 09, 2008 12:46 am
Gender: Male
Spoken languages: English

Re: Tips, tricks and info

Post by Ferdielance »

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!"
User avatar
Bad Player
Posts: 7228
Joined: Wed May 20, 2009 10:53 pm
Gender: Male
Spoken languages: American
Location: Under a bridge

Re: Tips, tricks and info

Post by Bad Player »

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 ^^")
User avatar
Ferdielance
Posts: 778
Joined: Sun Mar 09, 2008 12:46 am
Gender: Male
Spoken languages: English

Re: Tips, tricks and info

Post by Ferdielance »

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!"
User avatar
Enthalpy
Community Manager
Posts: 5169
Joined: Wed Jan 04, 2012 4:40 am
Gender: Male
Spoken languages: English, limited Spanish

Re: Tips, tricks and info

Post by Enthalpy »

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
Post Reply