JAKOO56'S PROFILE

Lunar: The last hope
The Fan-Made sequel to the Lunar games.

Search

Filter

Touhou ~ Ethereal Kaleidoscope

Not a big fan of touhou but this definitely looks fun! I'll be giving it a try soon.

On a side note, i didn't know mouse controls were possible on VXA :o .

RMNPAGE.png

author=Pocari
Suscribed to your game :). It looks nice and cute. Hope you can release it soon.


Thanks! Been working at it a lot lately.

RMNPAGE.png

author=TheGiantHand
What font are using for the title/subtitle?


I didn't make them, they were already there when i started working on it. I could ask the guy who made them though.

[SCRIPTING] [RMVX ACE] Theolized battle system customization, way too messy.

Hmmm What would be the diference between Sprite.x and Sprite.ox?

[SCRIPTING] [RMVX ACE] Theolized battle system customization, way too messy.

Hello!

First of all i would like to apologise for this HUGE wall of text, but i am trying to give as much info as possible. I know this is asking for much, but if a kind soul would ever help me fixing it i would be super thankfull. I am looking for help improving my script so it's better to work with and leaves me room to improve in the future. I need help having the right logic for the script, if i need help writing it i will post a reply after. Right now it's super messy and wayyy too long.

I am currently working on a game called Lunar: The last hope. It is a fan game on Lunar. Lunar has an interesting battle system, where it almost feels like its tactical but not really. Here is a video displaying it! Video

I managed to get close and to be honest, it looks decent! Here is a video of my battle system.Video Now there's a few issues with that but i'll come back on that later.

Now... On the inside... Dun... Dun... DUUUUUUUUUUUNNN https://i.gyazo.com/011c8434d6bbcd84ec491669a9e26331.mp4 (apparently gyazo makes mp4 files now?)I can't copy paste it all here, thats how big it is! So i'm remaking it but i don't think i have enough knowledge to get to a working state. I can do half the job but can't finish it.



What i use:

For the battle system i am only using Theolized Basic Module 1.5d and Theolized Implementation 1.4 (and everything that comes with it.)




Number 1: How it works and my attempts.

I found this bit of code that controlls all the movement

module THEO
module Movement
# =========================================================================
# Exclusive class move object. To prevent adding to many instance variable
# in object that implements this module
# -------------------------------------------------------------------------
class Move_Object
attr_reader :obj # Reference object
# -----------------------------------------------------------------------
# *) Initialize
# -----------------------------------------------------------------------
def initialize(obj)
@obj = obj
clear_move_info
end
# -----------------------------------------------------------------------
# *) Clear move info
# -----------------------------------------------------------------------
def clear_move_info
@to_x = -1
@to_y = -1
@real_x = 0.0
@real_y = 0.0
@x_speed = 0.0
@y_speed = 0.0
@jump = 0.0
@jump_interval = 0.0
@offset = 0
@duration = 0
@colided = false
end
# -----------------------------------------------------------------------
# *) Tells the object to move
# -----------------------------------------------------------------------
def move_to(x,y=0,jump=0,duration=0)
# You can also put the coordinate
if x.is_a?(Coordinate)
target = x
move_to(target.x, target.y, y, jump)
return
end
@to_x = x.to_i
@to_y = y.to_i
@real_x = @obj.x.to_f
@real_y = @obj.y.to_f
determine_speed(duration,jump)
end
# -----------------------------------------------------------------------
# *) Determine traveling speed
# -----------------------------------------------------------------------
def determine_speed(duration,jump)
@x_speed = (@to_x - @obj.x) / duration.to_f
@y_speed = (@to_y - @obj.y) / duration.to_f
@jump = jump.to_f
@jump_interval = @jump/(duration/2.0)
@duration = duration
end
# -----------------------------------------------------------------------
# *) Is object currently moving?
# -----------------------------------------------------------------------
def moving?
return false if @to_x == -1 && @to_y == -1
return false if @duration < 0
result = @obj.x != @to_x || @obj.y != @to_y
return result || @duration > 0
end

def collide_with_battlers?(x1, y1,x2,y2)
@obj.battlers_xy(x1, y1,x2,y2).any? do |battler|
#@colided = true
print("hit22")
return true
end
end


# -----------------------------------------------------------------------
# *) Update movement
# -----------------------------------------------------------------------
def update_move
@duration -= 1
@real_x += @x_speed
@real_y += @y_speed
@obj.x = @real_x.round
@obj.y = @real_y.round + @offset.round
@jump -= @jump_interval
@offset -= @jump
clear_move_info unless moving?
end

I can make it so that only Game_Actor and Game_Enemy is affected by it, no problem.

So, here's how it needs to work:
The x and y movement moves at a set ammount of pixel each frames (same for x and y). There is also a range stat. 1 range = 1 frame of movement. If for example i want my character to move 400 X pixel max, i'd make the speed 4 and range 100. When the character arrives at destination, he stops and does the next bit of action. If he doesn't make it before, then the attack is canceled and he loses a turn.

My attempts:

I'm thinking of making 2 "update_move"s, One for X and one for Y and changing it so it takes speed and range along with the destination. But i'm a bit stuck on how i'll get the sequence to wait and stop waiting when the character arrives and how i'll make it know the character is close enough.




Number 2: The Charcter animation

How it works: The character will cycle trought 3 frames of animation (can be more for monsters) Until he stops.

My attempt:

I can ajust the AutoPose command so that it loops infinitely until said to stop. it would probably use the same trigger as the wait for the movement, so i'm stuck here too...



(Not needed but would still love to have it working. Have no clue how to do this...)

Number 3: The collision system / pathfinding.

Yes, Lunar has a collision system in it's battle system along with a pathfinding. I'm assuming this is extremely hard to implement and i doubt it will ever work. Right now i managed to get a collision detection somewhat working but i have absolutely no clue on where to get started for the pathfinding and if it is even possible. I'll leave this as an open subject, if you have an idea on how to make it happen then feel free to tell me!




Current issues:

My current attempt for the battle system would be enemies/actors clumping up together and making a big sprite mess. The obvious way of fixing this would be the collision system or monsters/players having spells that involves going back to cast it. The other issue i have is big monsters, when a character attack, it will always go to 40 pixels in front of it. Since monsters are centered, this makes the players go inside the monster's sprite. I have made conditions in the attack sequence but having multiple monsters doing this, this adds up quickly and makes it unmanagable.

Anyways, i think thats about it... Any insight on this would be helpfull! Thanks!

Development Methods:Which ones are your favorites?

+1 for plan everything.

I've worked on my game for a good 6 months, thinking i had the engine down and i could do story. When i started doing the story though, i didn't have a plan. I had ideas for where i wanted the story to go but no solid plans. This ended up in me remaking almost EVERYTHING since the story didn't feel as good as i wanted it to be. I cannot stress this enough, TAKE TIME TO DO YOUR PLANS, EVEN IF IT TAKES A YEAR! Now i have everything planned.

My 2nd tip would be ; Don't settle for the first thing.

You have an idea, it feels like it's the right one. Don't put it in the game yet! Take your time, sleep on it. Once you're 100% sure then add it in the game. I've done this misstake way too many times and it ends up making me restart a bit of the game over and over and over.

P6 Blog #15 200+ Downloads! Woo!

[PAID] Looking for pixel artist for a small project

Sent a pm.

M.O.N.D.A.Y.Z.: THE END OF EVERYONE AND EVERYTHING (I FEEL FINE), GET UP AND JAM JABRONI! (A Chain Game Project)

I want in! :D

Anyone wanna work on a Chain Game (No, We're Not Making a Chain Gang...)?

I like the idea! Count me in if possible!