Topic for Sunfire Blitz!

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

1 Like

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?

1 Like

check function to attack

1 Like

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

2 Likes

Can you give an example?

if u want to move 10step
u can write

for i in range(10):
    hero.moveRight()
    attack()
    


attack is what u say ““image"””"

1 Like

Does anyone know how to throw a shochthrow correctly?

1 Like

Yes. Most of us do. Start here and then continue reading through the posts.

1 Like

where to start???

Click on the tiny profile picture in the top right of my post and it will take you there.

1 Like

what does target x,y mean???

I explained later on to blasterdrag.

1 Like

What is shockThrowtime “=”…

You have to tinker around for that one. It took me a while.