This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2010-04-09 10:59:07

Repto
Scratcher
Registered: 2010-01-10
Posts: 88

Re: AI Competition

bugefun wrote:

I might enter this, but how could I have multiple bullets from one sprite?

Try to work it out, I'm not going to tell you!


http://scratch.mit.edu/static/projects/Repto/1074910_sm.pngandhttp://scratch.mit.edu/static/projects/Repto/1184314_sm.pngMy most successful projects!

Offline

 

#27 2010-04-09 11:46:51

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: AI Competition

Repto wrote:

bugefun wrote:

I might enter this, but how could I have multiple bullets from one sprite?

Try to work it out, I'm not going to tell you!

Hint: Use the stamp block. But then bullet detection will not work if the [if touching []] block is used.

Last edited by technoguyx (2010-04-09 11:47:19)


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#28 2010-04-09 16:26:08

bugefun
Scratcher
Registered: 2009-09-04
Posts: 3

Re: AI Competition

Well, that wouldn't really be a second bullet, just a picture of one. Would you have to go back and delete it, or otherwise it would create barriers like the pen blocks. Or your enemies could always use clear to erase your second bullet.

Offline

 

#29 2010-04-09 18:05:06

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: AI Competition

I know how to create multiple bullets from the same sprite
For a ton of bullets, this would lag like CRAZY
Get ready for some really laggy projects

Offline

 

#30 2010-04-10 03:16:03

Repto
Scratcher
Registered: 2010-01-10
Posts: 88

Re: AI Competition

well providing it is not too lagy, it should work


http://scratch.mit.edu/static/projects/Repto/1074910_sm.pngandhttp://scratch.mit.edu/static/projects/Repto/1184314_sm.pngMy most successful projects!

Offline

 

#31 2010-04-10 18:32:29

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: AI Competition

Repto wrote:

well providing it is not too lagy, it should work

it /is/ too laggy...
plus the graphics will be glitched with all the CLEAR blocks...

Offline

 

#32 2010-04-11 03:41:14

Repto
Scratcher
Registered: 2010-01-10
Posts: 88

Re: AI Competition

bhz wrote:

Repto wrote:

well providing it is not too lagy, it should work

it /is/ too laggy...
plus the graphics will be glitched with all the CLEAR blocks...

yeah, but if you don't stamp, but just make it jump between positions sooooo fast it would seem like you are everywhere at once. Anyway, there has been a lot of talking on this forum, but no entrees, please submit your entrees soon.


http://scratch.mit.edu/static/projects/Repto/1074910_sm.pngandhttp://scratch.mit.edu/static/projects/Repto/1184314_sm.pngMy most successful projects!

Offline

 

#33 2010-04-11 07:53:10

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: AI Competition

Repto wrote:

bhz wrote:

Repto wrote:

well providing it is not too lagy, it should work

it /is/ too laggy...
plus the graphics will be glitched with all the CLEAR blocks...

yeah, but if you don't stamp, but just make it jump between positions sooooo fast it would seem like you are everywhere at once. Anyway, there has been a lot of talking on this forum, but no entrees, please submit your entrees soon.

That's impossible.
Also, I find that it's just not worth it (making it this way would 1/num_bullets the speed of the bullet.)
Making my robot. It can adapt to the other robot's strategies (WATCH OUT!)

Offline

 

#34 2010-04-13 03:23:16

Repto
Scratcher
Registered: 2010-01-10
Posts: 88

Re: AI Competition

bhz wrote:

Repto wrote:

bhz wrote:


it /is/ too laggy...
plus the graphics will be glitched with all the CLEAR blocks...

yeah, but if you don't stamp, but just make it jump between positions sooooo fast it would seem like you are everywhere at once. Anyway, there has been a lot of talking on this forum, but no entrees, please submit your entrees soon.

That's impossible.
Also, I find that it's just not worth it (making it this way would 1/num_bullets the speed of the bullet.)
Making my robot. It can adapt to the other robot's strategies (WATCH OUT!)

AHHHHHHHH The evil adapting bot is after meeeee...... ARRGGGGGGG!!!!!! URGHHhhhh..... [dramatically falls down dead]


http://scratch.mit.edu/static/projects/Repto/1074910_sm.pngandhttp://scratch.mit.edu/static/projects/Repto/1184314_sm.pngMy most successful projects!

Offline

 

#35 2010-04-15 14:32:27

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: AI Competition

my robot is so good, even if it is not moving, you won't be able to hit it.

not telling how


Food is Fat. Fat is power.
        I am almighty.

Offline

 

#36 2010-04-16 06:18:05

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: AI Competition

roger- wrote:

my robot is so good, even if it is not moving, you won't be able to hit it.

not telling how

then that's an illegal robot  yikes

Offline

 

#37 2010-04-16 07:29:43

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: AI Competition

roger- wrote:

my robot is so good, even if it is not moving, you won't be able to hit it.

not telling how

THE HIDE BLOCK!


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#38 2010-04-17 01:13:18

bugefun
Scratcher
Registered: 2009-09-04
Posts: 3

Re: AI Competition

I have a good method of stopping bullets from hitting a tank, but if you can only have one bullet, my method won't work so well. You can see it in my tank project, but it isn't an entry, just a test.

Offline

 

#39 2010-04-17 02:05:11

Repto
Scratcher
Registered: 2010-01-10
Posts: 88

Re: AI Competition

Ok new rules, sorry for having so many:
bullets cannot explode and cannot be destroyed by other bullets because that would require programming in both bullets (sorry bugefun)
hide and show blocks are now banned on tanks but are acceptable on bullets. If you have a way of stopping a weapon from hitting you even when you are sitting still, that is unfair and the way must be posted so that I can decide whether it should be allowed or not.


http://scratch.mit.edu/static/projects/Repto/1074910_sm.pngandhttp://scratch.mit.edu/static/projects/Repto/1184314_sm.pngMy most successful projects!

Offline

 

#40 2010-04-17 06:57:18

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: AI Competition

Can you abort firing a bullet (as in, let the bullet re-fire) before it hits a wall or the other player?

EXAMPLE:

ME ---------------- AI

I fire.
The AI dodges the bullet

ME ------------ >[/blocks]>[/blocks]>[/blocks]>
----------- AI

>[/blocks]>[/blocks]>[/blocks]> = bullet
At this point, can the bullet realize that it has no chance at hitting the AI, self-destruct (no damage to opponent bot), and re-fire from the base?

Last edited by bhz (2010-04-17 07:01:15)

Offline

 

#41 2010-04-18 02:31:38

Repto
Scratcher
Registered: 2010-01-10
Posts: 88

Re: AI Competition

bhz wrote:

Can you abort firing a bullet (as in, let the bullet re-fire) before it hits a wall or the other player?

EXAMPLE:

ME ---------------- AI

I fire.
The AI dodges the bullet

ME ------------ >[/blocks]>[/blocks]>[/blocks]>
----------- AI

>[/blocks]>[/blocks]>[/blocks]> = bullet
At this point, can the bullet realize that it has no chance at hitting the AI, self-destruct (no damage to opponent bot), and re-fire from the base?

Of course, if you wish you can have this feature there are no rules against it.


http://scratch.mit.edu/static/projects/Repto/1074910_sm.pngandhttp://scratch.mit.edu/static/projects/Repto/1184314_sm.pngMy most successful projects!

Offline

 

#42 2010-04-18 14:57:57

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: AI Competition

ok.. fine. the way my robot dodges other bullets is that the rotation center of the robot is way off from the picture of the robot. that way the bullets fire at the rotation center. that doesn't use any banned block so it should be legal


Food is Fat. Fat is power.
        I am almighty.

Offline

 

#43 2010-04-18 16:27:30

Repto
Scratcher
Registered: 2010-01-10
Posts: 88

Re: AI Competition

roger- wrote:

ok.. fine. the way my robot dodges other bullets is that the rotation center of the robot is way off from the picture of the robot. that way the bullets fire at the rotation center. that doesn't use any banned block so it should be legal

Ok very clever, I cannot argue with something like that, it is not against the rules, but it will spoil the sporting nature to this competition. I would like you to reconsider the use of this stroke of genius, however if you do decide to use this I will have to regulate the costume, as I would do normally for size reasons, rendering this ability useless. If you do decide to drop this I will give you a rematch against your opponent if you lose a battle.

Thank you for revealing your idea and I hope you will choose to drop your secret weapon.


http://scratch.mit.edu/static/projects/Repto/1074910_sm.pngandhttp://scratch.mit.edu/static/projects/Repto/1184314_sm.pngMy most successful projects!

Offline

 

#44 2010-04-18 17:20:07

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: AI Competition

my robot may be able to adapt to that D:
I will test


EDIT: nope...it really depends on how far is far. it should adapt to one tank-length. anything over that...no

Last edited by bhz (2010-04-18 17:25:02)

Offline

 

#45 2010-04-18 23:14:29

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: AI Competition

i think i have another way of dodging bullets, but i am not sure if it works. i am currently testing it. i will tell you if it works.


Food is Fat. Fat is power.
        I am almighty.

Offline

 

#46 2010-04-19 21:36:27

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: AI Competition

i know a way to move faster than 15 steps. just do -x steps. you should ban negative integers.


Food is Fat. Fat is power.
        I am almighty.

Offline

 

#47 2010-04-20 16:19:05

Repto
Scratcher
Registered: 2010-01-10
Posts: 88

Re: AI Competition

roger- wrote:

i know a way to move faster than 15 steps. just do -x steps. you should ban negative integers.

Yes, but the speed is how fast you are moving, even when moving backwards your speed is still positive.


http://scratch.mit.edu/static/projects/Repto/1074910_sm.pngandhttp://scratch.mit.edu/static/projects/Repto/1184314_sm.pngMy most successful projects!

Offline

 

#48 2010-04-20 20:45:14

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: AI Competition

ok, there is another way to dodge bullets. it doesn't always work, but it is pretty good. let's say that the size is 90 x 90 or lower. just make a robot that is 1 pixel at each of the corners of the 90x90 sprite, then make it rotate. it almost always dodges the bullet.


Food is Fat. Fat is power.
        I am almighty.

Offline

 

#49 2010-04-21 06:31:07

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: AI Competition

roger- wrote:

ok, there is another way to dodge bullets. it doesn't always work, but it is pretty good. let's say that the size is 90 x 90 or lower. just make a robot that is 1 pixel at each of the corners of the 90x90 sprite, then make it rotate. it almost always dodges the bullet.

require the sprite to be filled in?

Offline

 

#50 2010-04-21 10:32:58

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: AI Competition

Also, you have to have a way of tracking speed, because, what if you used change x and y instead of move( )steps?


Food is Fat. Fat is power.
        I am almighty.

Offline

 

Board footer