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

#1 2013-02-22 12:58:59

FeatherWind
Scratcher
Registered: 2012-10-24
Posts: 100+

Need Help, Important!!!

I'm making a Pokemon: Mystery Dungeons explorers of sky game. I have up to where they go into beach cave. I tried making a script that will make one sprite follow your player, but he just went the same way that pikachu(your character) went, not actually FOLLOWING it.

Also, I tried making a script that when they touch a certain color (edge of the dungeon) they went backwards. But when they touched that color, they started gliding around in the part they aren't supposed to go into! I really need help. You can make it as complicated as it has to be, I just need something that works. Here Is the script I used for following the sprite:

When I recieve time4adventure
Go to x:-71 y:68
show
go to sprite 4
change x by -50
Forever
If movementvariable=1
if right arrow key pressed
switch to costume rightidle
change x by 0.5   (I did that for all directions)
If touching sprite4
change x by -50


Then for the walls I did:

When I recieve time for adventure
forever if movementvariable=1
if touching color (color)
If costume# of player=6
change x by -1  (then I did that for all directions)

Please help me! I really want to make this game!

Last edited by FeatherWind (2013-02-22 14:58:38)


http://stream1.gifsoup.com/view/37620/shugo-chara-amu-o.gif [url=http://gifsoup.com/view/37620/shugo-chara-amu.html]

Offline

 

#2 2013-02-22 13:16:30

FeatherWind
Scratcher
Registered: 2012-10-24
Posts: 100+

Re: Need Help, Important!!!

Someone help please?


http://stream1.gifsoup.com/view/37620/shugo-chara-amu-o.gif [url=http://gifsoup.com/view/37620/shugo-chara-amu.html]

Offline

 

#3 2013-02-22 13:25:03

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Need Help, Important!!!

I will help as soon as i can... I will get back to this.

Regards,

CAA14

Offline

 

#4 2013-02-22 13:32:39

FeatherWind
Scratcher
Registered: 2012-10-24
Posts: 100+

Re: Need Help, Important!!!

Thank you!!


http://stream1.gifsoup.com/view/37620/shugo-chara-amu-o.gif [url=http://gifsoup.com/view/37620/shugo-chara-amu.html]

Offline

 

#5 2013-02-22 14:52:06

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Need Help, Important!!!

Okay, so just to make sure, the first two scripts that you posted are for your main character and no one else, right?

With regards,

ErnieParke

Last edited by ErnieParke (2013-02-22 14:52:15)


http://i46.tinypic.com/35ismmc.png

Offline

 

#6 2013-02-22 14:59:36

FeatherWind
Scratcher
Registered: 2012-10-24
Posts: 100+

Re: Need Help, Important!!!

the first script is for the computer controlled character. the second one is for both of them.


http://stream1.gifsoup.com/view/37620/shugo-chara-amu-o.gif [url=http://gifsoup.com/view/37620/shugo-chara-amu.html]

Offline

 

#7 2013-02-22 15:00:37

FeatherWind
Scratcher
Registered: 2012-10-24
Posts: 100+

Re: Need Help, Important!!!

And by both I mean the computer controlled character and the player controlled character.


http://stream1.gifsoup.com/view/37620/shugo-chara-amu-o.gif [url=http://gifsoup.com/view/37620/shugo-chara-amu.html]

Offline

 

#8 2013-02-22 15:06:35

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Need Help, Important!!!

Okay, let me propose a simple plan that should work:

For the character:

when i receive [adventuretime v]
go to x:(-71) y: (68)
show
forever
if <touching? [wall v]>
if < (direction) = [90]
change x by (-10)
end
if < (direction) = [-90]
change x by (10)
end
end
end
when i receive [adventuretime v]
if <key [right arrow v] pressed?>
point in direction [90]
change x by (10)
end
if <key [left arrow v] pressed?>
point in direction [-90]
change x by (-10)
end
That should work.
If you wanted to use color sensing, then please tell me, and i will edit the above scripts.

Hope that helps,

CAA14

Offline

 

#9 2013-02-22 15:36:24

FeatherWind
Scratcher
Registered: 2012-10-24
Posts: 100+

Re: Need Help, Important!!!

I'm going to use color sensing, but the second script is good. I'll try it out, your help is appreciated!


http://stream1.gifsoup.com/view/37620/shugo-chara-amu-o.gif [url=http://gifsoup.com/view/37620/shugo-chara-amu.html]

Offline

 

#10 2013-02-22 15:44:10

FeatherWind
Scratcher
Registered: 2012-10-24
Posts: 100+

Re: Need Help, Important!!!

If you've played the pokemon mystery dungeons games, I want their movement to be like that while in the dungeons. If you haven't played it, you can check out a youtube video and see what their movement is like in the dungeon. You don't need to right away, seeing as you're busy, but maybe later. In the meantime I'll do some experimenting.

Thank you so much for your help.
- Featherwind


http://stream1.gifsoup.com/view/37620/shugo-chara-amu-o.gif [url=http://gifsoup.com/view/37620/shugo-chara-amu.html]

Offline

 

#11 2013-02-22 15:47:44

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Need Help, Important!!!

No problem.

Give me a few minutes and i will try to get back with some color sensing options.

Again, i am glad to help.

CAA14

Offline

 

#12 2013-02-22 15:59:42

FeatherWind
Scratcher
Registered: 2012-10-24
Posts: 100+

Re: Need Help, Important!!!

Alright, thanks!


http://stream1.gifsoup.com/view/37620/shugo-chara-amu-o.gif [url=http://gifsoup.com/view/37620/shugo-chara-amu.html]

Offline

 

#13 2013-02-22 16:45:37

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Need Help, Important!!!

Sorry it took more than the few minutes, i forgot i was supposed to do something.  smile

Okay, here it goes:

CAA14 is back and wrote:

Okay, let me propose a simple plan that should work:

For the character:

when i receive [adventuretime v]
go to x:(-71) y: (68)
show
forever
if <touching color [#000000]?>
if < (direction) = [90] >
change x by (-10)
end
if < (direction) = [-90] >
change x by (10)
end
end
end
when i receive [adventuretime v]
if <key [right arrow v] pressed?>
point in direction [90]
change x by (10)
end
if <key [left arrow v] pressed?>
point in direction [-90]
change x by (-10)
end
That should work.
If you wanted to use color sensing, then please tell me, and i will edit the above scripts.

Hope that helps,

CAA14

Last edited by CAA14 (2013-02-22 16:46:07)

Offline

 

#14 2013-02-22 16:55:08

FeatherWind
Scratcher
Registered: 2012-10-24
Posts: 100+

Re: Need Help, Important!!!

Thanks! I'll try that out!


http://stream1.gifsoup.com/view/37620/shugo-chara-amu-o.gif [url=http://gifsoup.com/view/37620/shugo-chara-amu.html]

Offline

 

#15 2013-02-22 16:55:55

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Need Help, Important!!!

Tell me if you run into problems.

Regards,

CAA14

Offline

 

#16 2013-02-22 17:06:43

FeatherWind
Scratcher
Registered: 2012-10-24
Posts: 100+

Re: Need Help, Important!!!

Yay! It worked! Thank you!!


http://stream1.gifsoup.com/view/37620/shugo-chara-amu-o.gif [url=http://gifsoup.com/view/37620/shugo-chara-amu.html]

Offline

 

#17 2013-02-22 17:40:24

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Need Help, Important!!!

FeatherWind wrote:

Yay! It worked! Thank you!!

Great! If you ever need anymore help, just ask.
Also, if that's all you needed from this thread, you can close it by reporting the first post and saying "Please Close" or something like that.

Regards,

CAA14

Offline

 

#18 2013-02-22 22:45:36

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Need Help, Important!!!

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer