Well, if it's a scroller, you set it's X to ScrollX plus a local variable called movement (or something along those lines). Than, you change movement, and the character moves!
Offline
nicolasx wrote:
Bluestribute5 wrote:
Well, if it's a scroller, you set it's X to ScrollX plus a local variable called movement (or something along those lines). Than, you change movement, and the character moves!
who are you?
Oh, I don't wanna mess up my 100th project, and I need to upload stuff for Scratchers United
Offline
keroro645 wrote:
Did you look at my game?
No, something else was downloading (my computer is slower than a tortoise with 2 legs). But now I can
Offline
Alright, you need to get rid of the SafeX and simply, if the distance is less than 50, point towards the character and move 1 step. If they touch gray, repeat until they aren't- change X by 1. That should do it
Offline
Bluestribute5 wrote:
Alright, you need to get rid of the SafeX and simply, if the distance is less than 50, point towards the character and move 1 step. If they touch gray, repeat until they aren't- change X by 1. That should do it
![]()
Could you put that in block form please cause i dont really get it.
Offline
[blocks]<if><( <distance to[ character <<> 50 )>[/blocks]
[blocks]<point towards( character[/blocks]
[blocks]<move( 1 )steps>[/blocks]
[blocks]<if><touching color[ gray[/blocks]
[blocks]<repeat until> <not> <touching color[ gray >>[/blocks]
[blocks]<change x by( 1[/blocks]
Offline
Bluestribute5 wrote:
[blocks]<if><( <distance to[ character <<> 50 )>[/blocks]
[blocks]<point towards( character[/blocks]
[blocks]<move( 1 )steps>[/blocks]
[blocks]<if><touching color[ gray[/blocks]
[blocks]<repeat until> <not> <touching color[ gray >>[/blocks]
[blocks]<change x by( 1[/blocks]
So what does this do
Last edited by keroro645 (2008-07-03 00:16:17)
Offline
keroro645 wrote:
Bluestribute5 wrote:
[blocks]<if><( <distance to[ character <<> 50 )>[/blocks]
[blocks]<point towards( character[/blocks]
[blocks]<move( 1 )steps>[/blocks]
[blocks]<if><touching color[ gray[/blocks]
[blocks]<repeat until> <not> <touching color[ gray >>[/blocks]
[blocks]<change x by( 1[/blocks]So what does this do
If the distace is less tha n50, it will point and move towards the player. Now if it hits the wall, it will try and navigate around it (I know there are other ways. This is just the easiest)
Offline
keroro645 wrote:
so remove SafeX AND SafeY
WEll, they don't seem to help, do they? You can also set points tow guide the robots (look at JSO's Race car AI)
Offline
Bluestribute5???????????????????
Offline
AlanProjects wrote:
Bluestribute5???????????????????
Yeah. I'm making my 100th project and I don't wanna ruin it with contest stuff
Offline
keroro645 wrote:
So your bluestribute.
Yep
Offline
Ok it's about my slime tennis game, for some reason, the point system keeps doubling itself, so that if you win 1 point, you win the game, i don't wan't this to happen and i can't seem to find what's causing this to happen so could somebody plzzzzz look at it and figure out what's happening (Here's a link to the project http://scratch.mit.edu/projects/hussein7860/205756) thx in advance.
Offline
Bluestribute wrote:
keroro645 wrote:
So your bluestribute.
Yep
I'm registeelviruskiller
Offline