Hello everyone! I need help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Hello everyone! I need help

Why the cube can't jump a second time? https://code.sololearn.com/WTGTRmYfk4Y5/?ref=app

4th Oct 2017, 10:59 AM
😎_M_😎
😎_M_😎 - avatar
10 Answers
+ 2
That's because you used : window.onload = function() { ...... } Actually you need to set it onclick. Add this . .......HTML...... <canvas onclick = "Fly_Up();"> .....Java Script..... function Fly_Up();{ ..... } Hope you understand .
7th Oct 2017, 3:57 PM
RZK 022
RZK 022 - avatar
7th Oct 2017, 4:27 PM
RZK 022
RZK 022 - avatar
+ 1
that's what I was talking about .
7th Oct 2017, 4:28 PM
RZK 022
RZK 022 - avatar
+ 1
wow, thanks, now i will try to understand the code
7th Oct 2017, 4:30 PM
😎_M_😎
😎_M_😎 - avatar
0
hello
7th Oct 2017, 4:23 PM
😎_M_😎
😎_M_😎 - avatar
0
this cant help me(((
7th Oct 2017, 4:23 PM
😎_M_😎
😎_M_😎 - avatar
7th Oct 2017, 4:24 PM
😎_M_😎
😎_M_😎 - avatar
0
what i must do to fix it?
7th Oct 2017, 4:25 PM
😎_M_😎
😎_M_😎 - avatar
0
wait I'll correct your code .
7th Oct 2017, 4:25 PM
RZK 022
RZK 022 - avatar
0
ok thank you very much
7th Oct 2017, 4:26 PM
😎_M_😎
😎_M_😎 - avatar