steppenwulf&juststickman working on the AI collab. Discussion here
Offline
Okay, what I am trying to do is get a sprite called "radar" to detect things coming close to the robot. The radar won't be too large, its x and y positions will be the robot's x and y, and I want it to brodcast a set of commands to the robot if a non-friendly touches it. Trouble is, I'm having a hard time actually getting it to know when something touches it.
Offline
Use the
<touching[
Block.
Ask demosthenes if you want to know anymore.
Last edited by juststickman (2010-03-09 13:56:42)
Offline
That's the thing. Exactly what do you tell it to touch?
Offline
That's what I'm telling you to ask demosthenes (if I spelled that right) about
Last edited by juststickman (2010-03-09 13:57:00)
Offline
Sorry, juststickman, I'm sick I'll try to do as much coding as I can, but I probably won't get that much done, because I'm not feeling too good. Sorry
Offline
0_o oh come on...
I'm sorta sick too.
Offline
I'm unsick and I'm back for mooaarr! What do you have so far?
Offline
Well, I think I'm almost done! Just finishing touches from you needed really, project here: http://scratch.mit.edu/projects/justtestingstickman/921450
(I will delete after you reply unless I'm not back yet)
Offline
juststickman wrote:
Well, I think I'm almost done! Just finishing touches from you needed really, project here: http://scratch.mit.edu/projects/justtestingstickman/921450
(I will delete after you reply unless I'm not back yet)
Just tested - why is the enemy winning?
Offline
RHY3756547 wrote:
juststickman wrote:
Well, I think I'm almost done! Just finishing touches from you needed really, project here: http://scratch.mit.edu/projects/justtestingstickman/921450
(I will delete after you reply unless I'm not back yet)Just tested - why is the enemy winning?
No it's not... At least not offline...
EDIT: figured out why. It's a sizing glitch online because sprites online can't be as big as offline.
Last edited by juststickman (2010-03-08 15:03:40)
Offline
juststickman wrote:
RHY3756547 wrote:
juststickman wrote:
Well, I think I'm almost done! Just finishing touches from you needed really, project here: http://scratch.mit.edu/projects/justtestingstickman/921450
(I will delete after you reply unless I'm not back yet)Just tested - why is the enemy winning?
No it's not... At least not offline...
EDIT: figured out why. It's a sizing glitch online because sprites online can't be as big as offline.
Ah.
Because variable stuff doesn't work right online mine shoots to the middle of the screen online.
Offline
What's your AI like?
Not a clear description, just something like shot avoiding and guided missiles.
Offline
Haven't put shot avoiding in yet - but yes, guided missiles.
Offline
Juststickman, what finishing touches would you like me to put?
Offline
Fix things where it messes up, like when it gets stuck in corners etc. And improve the homing missiles.
Offline
Yes-sir! lol
Offline
What do you have so far?
Offline
Currently working on better homing missles, better dodging, and keeping the missle from staying in the corner or pointing in the wrong direction. I do have one question, though: What is "Yup" supposed to do?
Offline
steppenwulf wrote:
Currently working on better homing missles, better dodging, and keeping the missle from staying in the corner or pointing in the wrong direction. I do have one question, though: What is "Yup" supposed to do?
It's a more relaxed way of saying "hit?", it's basically if the shot is touching the sprite or not.
Offline
I'm having major trouble improving the lock on and the dodging system. I noticed with the missle lock on system, it only works at certain directions, otherwise it will move away from the NPC instead of torwards it. What still bothers me is that the sensor randomly disappears and reappears for just a split second. During that split second, the lock on messes up
Last edited by steppenwulf (2010-03-10 12:38:13)
Offline
I probably should've used sin and cos instead of moving steps ^.^"
Anyway, this is pretty much a better version: http://scratch.mit.edu/projects/justtestingstickman/926042
DO NOT STEAL IT!!!!!!!
(that's my personal version, not team one)
Offline
I'm not stealing it, but I wanted to point out something. Sometimes the sensor doesn't go to the bullet straight away, and the bullet just goes randomly flying. Or sometimes the sensor doesn't detect fast enough, and the bullet ends up doing zig-zags.
Offline
Yup. True dat.
BUT IT STILL PWNS THE COLLAB AI!!!
Offline