0

Help with JQuery

How can I write the “return false function in JQuery” so after pressing a button it returns false. How can I add in JQuery that when pressing a button an image go +1 Y position or -1 Y position. Also +1 or -1 X position. So when I press a button my image moves and stop moving when I stop pressing the button. And if you know, how can I import images from my IPad to Solo Learn. It’s cause I am making a game in another app. The game is not finished but when it is finished I want to make it publish in Solo Learn. If you help me with this Questions you can play it like “The Ballon And The Cactus”. Please help.

20th Jul 2018, 2:39 AM
Octavio Aguayo
Octavio Aguayo - avatar
7 Answers
+ 1
In the Returns False, I want that after pressing the button my CSS animation happends and then it restarts the button so you can press it again
20th Jul 2018, 2:41 AM
Octavio Aguayo
Octavio Aguayo - avatar
+ 1
Can you post a code for sample just for understand and help you?
20th Jul 2018, 8:24 AM
KrOW
KrOW - avatar
+ 1
Octavio Aguayo I want help you but you have to make me in help position... Start with place your images online... Next i noticed some reference to js file "script.js" and i dont know his content... Futhermore where you defined RFunc, LFunc etc.??
20th Jul 2018, 8:08 PM
KrOW
KrOW - avatar
0
And for the final part, can you tell me how to make that when an image touch something (The Cactus touch the ballon) an animation happends.
20th Jul 2018, 2:45 AM
Octavio Aguayo
Octavio Aguayo - avatar
0
https://code.sololearn.com/W9x2rGnAsqfz/?ref=app The images of background, cactus & ballon aren’t there cause I dont now how to import images.
20th Jul 2018, 6:05 PM
Octavio Aguayo
Octavio Aguayo - avatar
0
Octavio Aguayo You have used relative url like src value... Instead use absolute url
20th Jul 2018, 6:51 PM
KrOW
KrOW - avatar
0
But please help me with the other things, I use url cause I use images from my ipad.
20th Jul 2018, 7:33 PM
Octavio Aguayo
Octavio Aguayo - avatar