Some question for my team super blocky racing game

You’ll probably want to do something like:

When the CPU gets an item, trigger the code of the item being used (probably will be similar to players using items)

Oh thats a great idea! @johnpost

but how would i do that? @johnpost

Do you have code for when the player uses an item yet?

not really i still have alot to work on and there’s one item that i have where called frenzy where you turn invincible, go fast, and when you hit other players they stop, but i don’t know how to do the stop part

i use a animation for the frenzy item use so i dont know how to

I think you should figure out the items for the player before trying to get them to work for CPUs. In order to make someone stop, you could add a switch into their movement code that would go like this:

Trigger (Such as always for CPUs or arrow keys for players) has to go through a switch. If the switch is on, they will be able to move, if the switch is off, they won’t. You can have the switch set to on and off using collisions with items or characters with powerups, and have it turn back on after an amount of time.

i made them all already

ill try that, thanks!

@johnpost could u give a screenshot or something i dont know how to do that. https://flowlab.io/game/view/1471211

sorry nevermind i got it

1 Like