JavaScript, I presume?
Use console.log() and your browser’s dev console
how to open dev console
Press F12 on your keyboard, then select “Console” from the list of tabs at the top of the sidebar that appears
JavaScript, I presume?
Use console.log() and your browser’s dev console
Press F12 on your keyboard, then select “Console” from the list of tabs at the top of the sidebar that appears
I tried that, but I have a Chromebook and it does not open dev console.
hey!How to run code and test function for attack at the same time?
check function to attack
I know what u r meaning,u can just do function after u finished walking.
use
for i in range(num):
…
…
Can you explain further?I have a function that shoots the water gun correctly and the code to run the turtle is outside the function but I don’t know how to run that code and still run the function at the same time
Do smthn like this:
move_function()
attack_function()
Where are they?
move_function()
attack_function()
…
…
Your movement function and attacking function. Change the function names accordingly
Can you give an example?
if u want to move 10step
u can write
for i in range(10):
hero.moveRight()
attack()
Does anyone know how to throw a shochthrow correctly?
Yes. Most of us do. Start here and then continue reading through the posts.
where to start???
Click on the tiny profile picture in the top right of my post and it will take you there.
what does target x,y mean???
I explained later on to blasterdrag.
What is shockThrowtime “=”…
You have to tinker around for that one. It took me a while.