How to make something move in the opposite direction of the mouse moves?
Hello dear community.
I saw on Sarif Industries some cool background animations. Especially the background animation where everyting moves in the opposite direction of the mouse moves.
So I didn't try to do this kind of animation too. But I don't know how I can do this and I don't know what they call this kind of animation.
I can't have the code but I do not understand programming languages.
* For anyone who does not want to go to the linked website *.
As has said that everything is moving in the opposite direction the mouse moves, but it seems that objects move in a given area and the objects are moving more slowly as the mouse moves.
I thank in advance and have a nice day
stage.addEventListener (onMouseMove, MouseEvent.MOUSE_MOVE);
private void onMouseMove($e:MouseEvent):void
{
_myBG.x = - stage.mouseX;
_myBG.y = - stage.mouseY;
}
You have everything you need in there.
Just twist the operations to achieve the desired effect...
Add "* 0.5" to make it move more slowly for example.
Tags: Adobe Animate
Similar Questions
-
How to make text disappear when the mouse is over a button?
Hello, I'm completely new to Flash, and well I need help. I created a page that contains static text in the Center.
Page has buttons on the side and when I rollover a button text is displayed, but the problem is that when I rollover a button, static text in the Center is here and I want to hide as I can't read anything either because the texts are overlapping.
How can I make the text in the centre disappear / hide when I rollover a button and how do I make it reappear when the mouse is the off button?
I hope what I said makes sense.
You can assign the code onRollOver and onRollOut buttons to the dispappear of text, but you will need make the text a movieclip with instance name that you can use to target to make it invisible. In the example below, the button has an instance name of "btn" and the movieclip of text has an instance name of "text_mc".
btn.onRollOver = function() {}
text_mc._visible = false;
}
btn.onRollOut = function() {}
text_mc._visible = true;
}
-
How to make a passage from the mouse inactive before a click?
Hello
IM new at this request, but I like it a lot!
My question is how to activate a button with a 'click' or any other action that is the only thing before for example a passage of the mouse becomes active? I would like to make this infographic that gives you the ability to click a button, then a rectangle is displayed, then you hover over the rectangle and the text appears.
Thanks in advance
Casper
I would use animate() for mouseenter and mouseleave events.
Example here:
-
How to make a clip with the mouse
How do rotate you a clip so it always faces the mouse?Try something like this:
-
How to make an object follow the mouseX when clicked on
How to make an object follow the mouseX if clicked? Help, please.
You should think it through - your code does not match your very simple explanation of what you say, it should do so, and it should... click an element and follow the mouse.
A game loop (ENTER_FRAME) could work, but in this case it wastes unnecessary treatment if the mouse does not move. And in your code example, it does not expect the clicks.
Use a MOUSE_MOVE instead of an ENTER_FRAME event listener. Inside of the event by clicking on the handler function is where you must be defined the MOUSE_MOVE listener. The MOUSE_MOVE listener Manager is where you assign rock1Cnt.x = mouseX.
public void Main (): void {}
rock1Cnt.addEventListener (MouseEvent.CLICK, mouseClickHandler);
}
private void mouseClickHandler(e:MouseEvent):void {}
stage.addEventListener (Event.MOUSE_MOVE, followMouse);
}
private void followMouse(e:MouseEvent):void {}
rock1Cnt.x = mouseX
}
-
How to make a folder shows the number of files in there?
How to make a folder shows the number of files in there?
You have not indicated what OS you are using.
Yosemite
Action > View Options: Select to display the item of information
-
I'm trying to connect on Apple TV. It keeps generating a 6-digit verification code, sent to another device. I need a 4 digit or need to know how to make a space on the verification code entry screen
Read this noting the last two paragraphs:
For Apple ID - Apple Support two-factor authentication
You can try to add on your suggested such password or disable the service and then connect.
-
How to make an arch on the topic title?
How to make an arch on the topic title?
You can do the following entirely in any version of Pages because the text on a path is not supported. The News Gothic 'gate' in one area of text Pages. The arc of text was done in HTML5 Canvas with Javascript, then saved as a .png image, which was dragged/dropped into Pages v5.6.1. Normal means to create text curvilinear (CRA) is done by an application chart non-Apple.
-
How to make a lock off the internet so I can have another WiFi computer using the internet
How to make a lock off the internet so I can have another WiFi computer using the internet
you do not take the lock itself.
Instead, you configure another computer with security information to access the connection Wireless secure.
Unfortunately, we cannot help you with this, because we cannot tell if you are the owner of the wireless connection or someone trying to hack it via another computer.
However, what you can try is to contact technical support that provides your internet service. they will be well to validate your identity and then provide help or more detailed instructions.
-
the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card
Hello
It seems that you want to restore the files removed from the memory card.
I will definitely help you with this.
I would say you can search the Internet for data recovery software by using your favorite search engine.
Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
It will be useful. If you have any other questions, feel free to let us know. We will be happy to help you.
Thank you.
-
How to make a backup of the system files?
I want to just back up the filesystem in the case where.
Hello
You can save your own personal files (documents, photos, etc.) or do a complete PC backup that contains the system files.
If you want to make a complete PC Backup or a backup file only, buy an external hard drive.
Only Vista professional, comprehensive and company have the opportunity to make complete backups of PC.
All editions of Vista can do backups of files.
Here's how to back up and restore your files:
"How to back up your data.
http://www.wintuts.com/how-to-backup-your-data
http://www.home-PC-help.com/windowsvistabackup.html
"How to restore your files.
http://www.wintuts.com/how-to-restore-files
This is how to do a full backup of the computer and how to restore it (for Vista Business, Ultimate and Enterprise only):
«How to make a backup of the computer in Vista»
http://www.bleepingcomputer.com/tutorials/how-to-use-Vista-complete-PC-Backup/
"How to restore a full backup of the computer.
http://www.bleepingcomputer.com/tutorials/Windows-Vista-complete-PC-Restore/
FAQ from Microsoft about backup and restore:
"Back up and restore: frequently asked questions.
http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
There are a number of 3rd party programs available for a full backup of the computer; others, you must pay for, some are free.
This program must be purchased:
"Acronis True Image".
http://www.Acronis.com/homecomputing/products/TrueImage/index_gwo.html?utm_expid=4274314-6
These are free programs for the protection of the computer:
"EaseUS Todo Backup free"
http://www.TODO-backup.com/products/home/free-backup-software.htm
"Download Backup & Recovery 2012 free FREE!
http://www.Paragon-Software.com/home/BR-free/download.html
«Macrium Reflect FREE Edition»
http://www.Macrium.com/reflectfree.aspx
___________________________________________________
And if you do not score a manufacturer of recovery on your hard drive, you should be able to make your own recovery discs that are system files in order to reinstall the operating system.
Go to programs > name of the manufacturer of your computer > then their system or recovery tools software topics for them, depending on how it is formulated.
If you can't find any reference to it, contact the manufacturer for advice on how to make these recovery disks.
See you soon.
-
How to make a backup of the Windows BACKUP DELL?
I have a Dell 0ptiplex 3010 with windows 7 pro 32 bit 10 units.
How to make a backup of the Windows BACKUP DELL?
Please help, I'm still confused with BACKUP DELL.Hi rahar_satriyo,
Only the version complete Dell backup and restore will give you an option to backup computer image which is a paid version. The default Basic that comes with the system version will have only the restore factory in image.
-
How to make a CC off the power of a laptop so I can put it on a second desktop computer
How to make a CC off the power of a laptop so I can put it on a second desktop computer
You can simply disconnect from the Adobe Creative cloud to disable subscription:
https://helpx.Adobe.com/creative-cloud/help/sign-in-out-activate-apps.html
No need to uninstall to disable CC apps on a particular computer, but if you want you can uninstall it.
-
How to make navigation that pushes the page to the side while revealing the links?
How to make navigation that pushes the page to the side while revealing the links?
There is currently no way to call JS in reflow, or add some CSS Transitions. You can export the code
and then open it in a code editor of your choice and add the script necessary to do this. An example is available here: wide canvas Show Menu for Bootstrap model
-
How to make someone to sign the document within my documents in the tasks that I specify?
How to make someone to sign the document within my documents in the tasks that I specify?
Hello form signature,.
Yes, you can place the signature to a particular position field in the document as follows:
1. connect to EchoSign account.
2. Enter the e-mail address of the recipient.
3. download the document.
4. check "Preview, the Signatures of Position or add form fields" and click Next.
5. in the preview page, drag and drop the signature and other fields of the form if necessary in the document.
6. once the fields are placed, press Send.
Here is the link:
Let me know if you need more information.
Kind regards
-Usman
Maybe you are looking for
-
Pair two show Apple at each of the two iPhones?
I have two watches of Apple and two iPhones, and more a 6 and a 6 s each with IOS 9.3. Watches have been upgraded to 2.2. Each watch is now matched with one of the phones. I am trying to pair the two watches in each of the two iPhones using the new 9
-
Equium A300 boot not upward or HARD drive or ODD
Looks like I have the same problem on my A300 16 months old but a bit more complex. The HARD drive light does not come on (sometimes and I get the starting test 'not found media'. tried booting from the recovery disk, but it seems that the CD rom is
-
Hello I get a code for a test setup using the model of State machine project. "Standby mode", I would like to show some sort of device face: I want to continually read data and update several indicators, until any key is pressed (triggering of the st
-
by programming block window close
Is there a way to disable the user's ability to exit the window, while the program is running. For security, I want to force the user to end all out before leaving the program.
-
I don't know what to do with this?I searched but seem to come with an XP service pack 2 fixed?Should I just stay with my USB mouse?