Tips, tricks and info

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

Moderator: EN - Forum Moderators

Re: Tips, tricks and info 

Postby enigma » Sat Apr 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~!
User avatar
enigma
 
Posts: 3403
Joined: Sun Apr 24, 2011 11:05 am
Location: dancecat's heaven
Gender: Male
Spoken languages: miaou

Re: Tips, tricks and info 

Postby Ferdielance » Sat Apr 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!"
User avatar
Ferdielance
 
Posts: 763
Joined: Sun Mar 09, 2008 12:46 am
Gender: Male
Spoken languages: English

Re: Tips, tricks and info 

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

Re: Tips, tricks and info 

Postby Ferdielance » Wed Apr 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!"
User avatar
Ferdielance
 
Posts: 763
Joined: Sun Mar 09, 2008 12:46 am
Gender: Male
Spoken languages: English

Re: Tips, tricks and info 

Postby Enthalpy » Mon Feb 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
User avatar
Enthalpy
Community Manager
 
Posts: 4504
Joined: Wed Jan 04, 2012 4:40 am
Gender: Male
Spoken languages: English, limited Spanish

Previous

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest