I need help on my game

Fill this out this info to make it easier for the community to help you! If you don’t fill out this information, your post may be deleted or removed.

What Wick Editor Version are you using?
1.19.3

Describe the Problem
I need help with the bot not stopping at the wall

What have you tried so far?
moving code

Do you have a Wick Editor File that we can see? Optional*
My Project2-27-2021_2-43-55.wick
this one again

just change this line from:

if(this.hits(block)) {
project.AIspeed = 0
}

to

if(this.hits(block)) {
AIspeed = 0
}

that works but then the ai won’t move after it touches the block

i want it like the AI can’t walk through the wall but you can

I recommend to you to learn a little bit more of coding in js and then try more complicated stuff.

I suggest learning JS with Khan Academy’s “Intro to JS” path. A few things don’t apply because in Khan, you use code to draw. For example the following line draws a rectangle at x = 100 and y = 100 with a width of 50 and a height of 20:

rect(100, 100, 50, 20);

This code does not work in Wick.

Other things might not quite apply, but variables, functions, logic, looping, and the other things are for sure helpful.

1 Like

I found that teaching yourself is easier as long as you have google

I accually got it to work but if the AI touches a certain part it goes through
My Project2-27-2021_12-26-32.wick

1 Like