It is currently Fri Nov 17, 2017 2:33 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: Sat Oct 03, 2015 1:51 pm 
Offline

Joined: Wed May 19, 2010 6:12 pm
Posts: 2354
@ Espozo

Every object has two copies of the frame number. One "input" frame number and one "output" frame number. The character's AI routine determines the input frame, then the animation engine decides weather or not it can update the output frame, and then the OAM building routine draws the output frame.


Top
 Profile  
 
PostPosted: Sat Oct 03, 2015 2:24 pm 
Offline
User avatar

Joined: Mon Sep 15, 2014 4:35 pm
Posts: 3101
Location: Nacogdoches, Texas
So it's like one has the previous frame, and one has what is supposed to be the current frame?


Top
 Profile  
 
PostPosted: Sat Oct 03, 2015 5:21 pm 
Offline

Joined: Wed May 19, 2010 6:12 pm
Posts: 2354
Pretty much.

I think I have an easy way around the collision box problem. For the player-enemy collision, I cheated a bit and used point-box collision, to make collision more forgiving. I could just have a collision point variable, so I can just move the collision point.


Top
 Profile  
 
PostPosted: Sat Oct 03, 2015 5:52 pm 
Offline
User avatar

Joined: Mon Sep 15, 2014 4:35 pm
Posts: 3101
Location: Nacogdoches, Texas
R-Type 1-3 actually use a single point for the ship's hitbox. Despite how hard these games can be, they're actually pretty forgiving in a couple of aspects like this. I don't know why I felt like sharing that.

Anyway, I'm just curious, but is the player have its own designated spot in the object table so it's easy to look for? For collisions, I just thought of having the position of the player being one point, and have the hitbox have a separate position relative to the player coordinates. That way, if you crouch, the coordinates for the player don't have to move, only the hitbox. This is important because if you where crouching and then decided to jump, the player would start out partially through the floor, and could lead to you clipping through it.


Top
 Profile  
 
PostPosted: Sat Oct 03, 2015 8:51 pm 
Offline

Joined: Wed May 19, 2010 6:12 pm
Posts: 2354
Ideally the hitbox should be separate from the objects coordinates. I just did it an easy way that seemed good enough at the time.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group