06 September 2018, 19:19 | #241 |
Registered User
Join Date: Aug 2018
Location: england
Posts: 24
|
thanks for answering my questions. The background goes green when he is not standing on a tile?
|
06 September 2018, 19:59 | #242 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Over the last few days I've been working on the collision detection for the platforms, believe me there's two ways to do this and I now know the easiest route.
Route a) Blind debugging or b) Visible debugging! Games that have poor collision detection are seldom good to play so that's why I've put a lot of effort into getting this bit right. [ Show youtube player ] I'll try and explain what is going on in the video but you'll see I've added a lot of onscreen information to help with debugging, without it I was getting nowhere fast and with it I was able to nail it really well.
if the result of RSLMSK is 0 then the sprite is not standing on any tile at all. Now toward the end of the video I'm showing the tile and sprite definitions showing the ability to have fine grained collision detection. Believe me, this wasn't easy...and getting it right is a must. But there it is working. Next is an exciting bit that should be fairly easy in that I will be able to make the player jump and fall from tiles. As you can see from the video, the background goes Green when Rygar is not standing on a platform. |
06 September 2018, 20:30 | #243 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,773
|
I really like what you've done, with games where all the tiles are 16*16 for example simple bounding could be used I usually use the analogy of a map editor in reverse a map reader but with Rygar it seems not all the solid objects seem to be 16*16 or 8*8 like the branches and rocks etc they seem unprecise sizes.
|
06 September 2018, 21:15 | #244 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
@mcgeezer; wow!!!
I mean, I always knew game development has many different elements / factors / layers etc. but... Thanks to your detailed posts / information, one really does get an understanding of just how complex things are and the huge amount of time involved to get everything perfect |
06 September 2018, 22:54 | #245 |
namm namm AMIGA
Join Date: Jan 2015
Location: Austria
Age: 44
Posts: 734
|
Exactly what DamienD said.
I tried it once myself and it made me almost . Funny, when people complain today about the smallest things like ... ohh, there is a little FrameRate drop here , or a little Bug there , or Poppin or stuff like that, or that texture could be better - pfff absoule NUTS STFU, you could not even make a PONG GAME (sorry my language) Bottom line, gamemaking is incredible tuff ! |
06 September 2018, 23:11 | #246 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Another quick vid showing that hard work on the collisions...
As you can see, Rygar now interacts with the world. Off to bed now. tired and I won't be coding again till Sunday or Monday as tomorrow night I'm fiddling with my new A1200 and having a good supp. [ Show youtube player ] PS: As you can see it's not without bugs... (handy as I recorded it!) |
06 September 2018, 23:53 | #247 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Nice one, always improving things with every update
|
07 September 2018, 09:47 | #248 |
Registered User
Join Date: Oct 2015
Location: Landsberg / Germany
Posts: 526
|
Great to see your structured development approach, which results in steady progress. Quite fast too, if I may say so – I wish I would get as quick results with RESHOOT R :-)
I deeply appreciate your many updates here, as I know how much time this easts up. Many more people may now understand how many small little tasks have to be completed, just to get a hero run through a landscape. Jump curve of the player objects looks nice. Must be great to have a the hero interact with its surroundings for the first time! |
07 September 2018, 11:36 | #249 | |
Registered User
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,771
|
Quote:
Imagine being able to do arcade/MD ports with the original music intact. That would be fantastic. |
|
07 September 2018, 11:43 | #250 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
Just another small insight, what I did with Bomb Jack was keep a simple project plan to keep me focused which worked really well. As these are arcade games you already have a design template to work to. I've been doing the same thing with Rygar. As you can see, lots of work to be done. Nice, I'm happy to support it for my project but it would be best to wait until I've coded the game before you embark on a hardware project like that as I have no idea how long something like that would take you. Last edited by mcgeezer; 07 September 2018 at 12:46. |
|
07 September 2018, 11:54 | #251 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,773
|
So my question is how do you do collision please say in layman's terms
|
07 September 2018, 11:58 | #252 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
|
07 September 2018, 12:26 | #253 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,773
|
Yeah I just wondered how your hero and background collision works, Thanks.
|
07 September 2018, 12:33 | #254 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
|
07 September 2018, 13:13 | #255 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
For example, Tile 363 and 362 are the clay ground platforms so their attributes will be set to $ffff, this equates in a binary hit box of %1111111111111111. Some tiles that have ledges might only have part of the platform set, so for example %1111111111110000 would mean it is a short ledge on the right side. If a tile has no attributes then that means Rygar passes through it which is the case for the majority of the tiles. The Rygar sprite is 32 pixels wide, however not all of those pixels are used for collision so it also has an attribute with a hitbox. For example, you might just want to collide with Rygar's legs so the collision hit box looks like this because Rygar's feet only reach to where the 1's are. %00000000111111111111111100000000 Now when Rygar passes over each tile in the world, the hit boxes from the sprite and the tiles are ran through a logical AND. Code:
RYGAR %00000000111111111111111100000000 TILE %11111111111111110000000000000000 RESULT %00000000111111110000000000000000 The tricky bit to getting this working is to make it work with the scrolling and sprite movements properly. Hope this helps. |
|
07 September 2018, 13:23 | #256 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Quote:
(like different collision masks, tile's animation, effects on player/enemies..) |
|
07 September 2018, 13:28 | #257 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
At the moment they're not used for anything but the thought occured they could be handy later on. PS - thanks for the great feedback, really appreciated. |
|
07 September 2018, 15:01 | #258 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,773
|
Nice
|
07 September 2018, 21:54 | #259 |
Registered User
Join Date: Aug 2018
Location: england
Posts: 24
|
Does the collision detection only check for collisions of Rygar vs scenery to his right when he is moving right?
That is the way i did it when i made a platformer demo (for javascript canvas) Then you always check his feet for collision because gravity..(or density ) |
07 September 2018, 22:02 | #260 | |
CaptainM68K-SPS France
|
Quote:
Future will prove me right |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Entry: Rygar AGA Edition | mcgeezer | Coders. Entries | 75 | 28 February 2019 20:41 |
On the Ball - World Cup Edition AGA | djcasey | request.Old Rare Games | 4 | 25 January 2013 12:39 |
On The Ball League Edition AGA , Player Manager 2 | StarEye | Games images which need to be WHDified | 11 | 22 January 2010 18:21 |
The Vague #1 AGA-RTG edition is released ! | kas1e | Amiga scene | 12 | 30 October 2007 00:27 |
On The Ball: World Cup Edition AGA | CodyJarrett | request.Old Rare Games | 11 | 27 May 2003 06:14 |
|
|