The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
Thread Tools
  #1  
Unread March 3rd, 2013, 07:46 PM
Narzew
Unhatched Egg
 
Join Date: Jan 2012
Location: Poland
Gender: Male
Nature: Naughty
Welcome. How to add 8-way moving system in Pokemon Starter Kit (Pokemon Essentials) engine ?
Reply With Quote
  #2  
Unread March 3rd, 2013, 09:17 PM
Riansky's Avatar
Riansky
Purr
 
Join Date: Jan 2012
That would require alot of scripting. Usally you just don't come here, ask a question, and expect someone to do it for you. I recommend you to learn scripting then you should be able to do it
__________________
Reply With Quote
  #3  
Unread 2 Weeks Ago, 11:26 PM
Narzew
Unhatched Egg
 
Join Date: Jan 2012
Location: Poland
Gender: Male
Nature: Naughty
I know how to do in standard RMXP project, but I ask how to do this in PokeStarter.
Reply With Quote
  #4  
Unread 2 Weeks Ago, 12:52 AM
Evil Arms's Avatar
Evil Arms
Lina Inverse
 
Join Date: Aug 2010
Age: 17
Gender: Male
Nature: Brave
Cogwheel's 8 Direction Script works with Essentials if modified. My old game Pokemon Mint had 8 Directional movement.
__________________
Reply With Quote
  #5  
Unread 1 Week Ago, 08:28 AM
thor348's Avatar
thor348
That's Oak to You
 
Join Date: Nov 2012
Location: Arizona
Gender: Male
Nature: Calm
Here is what I use for 8-direction based movement for events:
#-----------------------------------------------------------------------
class Game_Character
def move_random
case rand(8)
when 0
move_down(false)
when 1
move_lower_left
when 2
move_left(false)
when 3
move_lower_right
when 4
move_right(false)
when 5
move_upper_left
when 6
move_up(false)
when 7
move_upper_right
end
end
#--------------------------------------------------------------------------
def move_toward_player
sx = @x - $game_player.x
sy = @y - $game_player.y
if sx == 0 and sy == 0
return
end
abs_sx = sx.abs
abs_sy = sy.abs
if abs_sx == abs_sy
rand(2) == 0 ? abs_sx += 1 : abs_sy += 1
end
if abs_sx > abs_sy
if not moving? and sy != 0
sx > 0 ? sy > 0 ? move_upper_left : move_lower_left : sy > 0 ? move_upper_right : move_lower_right
return
end
sx > 0 ? move_left : move_right
if not moving? and sy != 0
sy > 0 ? move_up : move_down
end
else
if not moving? and sx != 0
sx > 0 ? sy > 0 ? move_upper_left : move_lower_left : sy > 0 ? move_upper_right : move_lower_right
return
end
sy > 0 ? move_up : move_down
if not moving? and sx != 0
sx > 0 ? move_left : move_right
end
end
end
#--------------------------------------------------------------------------
def move_away_from_player
sx = @x - $game_player.x
sy = @y - $game_player.y
if sx == 0 and sy == 0
return
end
abs_sx = sx.abs
abs_sy = sy.abs
if abs_sx == abs_sy
rand(2) == 0 ? abs_sx += 1 : abs_sy += 1
end
if abs_sx > abs_sy
if not moving? and sy != 0
sx > 0 ? sy > 0 ? move_lower_left : move_upper_left : sy > 0 ? move_lower_right : move_upper_right
return
end
sx > 0 ? move_right : move_left
if not moving? and sy != 0
sy > 0 ? move_down : move_up
end
else
if not moving? and sy != 0
sx > 0 ? sy > 0 ? move_lower_right : move_upper_right : sy > 0 ? move_lower_left : move_upper_left
return
end
sy > 0 ? move_down : move_up
if not moving? and sx != 0
sx > 0 ? move_right : move_left
end
end
end
end
############################################################
#EDIT-------------------------------------------------------------------------------#
############################################################
http://forum.chaos-project.com/index...pic=555.0;wap2

Try this. You will have to tweak it a bit and the section 8a will take a little reading to replace. Also you will have to edit your sprites to work with the 8 directional movement. Hope this helps.

Last edited by thor348; 1 Week Ago at 06:21 PM. Reason: Your double post has been automatically merged.
Reply With Quote
Reply
Quick Reply

Sponsored Links


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC. The time now is 08:01 AM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User posts belong to the user.