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)
Offline
Someone help please?
Offline
I will help as soon as i can... I will get back to this.
Regards,
CAA14
Offline
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)
Offline
the first script is for the computer controlled character. the second one is for both of them.
Offline
And by both I mean the computer controlled character and the player controlled character.
Offline
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) endThat should work.
Offline
I'm going to use color sensing, but the second script is good. I'll try it out, your help is appreciated!
Offline
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
Offline
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
Alright, thanks!
Offline
Sorry it took more than the few minutes, i forgot i was supposed to do something.
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 endwhen 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) endThat 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
Thanks! I'll try that out!
Offline
Tell me if you run into problems.
Regards,
CAA14
Offline
Yay! It worked! Thank you!!
Offline
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