Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: 1 [2]   Go Down

Author Topic: [GMS] The Legend of Zelda GBC  (Read 15666 times)

0 Members and 1 Guest are viewing this topic.
Re: [GMS] The Legend of Zelda GBC
« Reply #20 on: June 27, 2020, 10:09:53 pm »
  • ZFGC Founder
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 470
Will that pixel filter be a toggle-able option? It's not terrible but I feel the GBC colours pop out so much better without it :)
Definitely will be filterable. Thanks for the input.

https://www.youtube.com/watch?v=UlNj8iydfpo

I'm not a big fan of unsolicited advice, but if you want some advice I have a few easy improvements for scrolling and sfx you can implement pretty quickly.

Otherwise it's coming along nicely, good work and nice progress
Let's hear em', Mamo.
« Last Edit: June 27, 2020, 11:48:50 pm by TheRealMethuselah »
Logged

Mamoruanime

@Mamoruanime
Re: [GMS] The Legend of Zelda GBC
« Reply #21 on: June 28, 2020, 03:25:00 am »
  • ^Not actually me.
  • *
  • Reputation: +9/-0
  • Offline Offline
  • Gender: Male
  • Posts: 9786
I'm not a big fan of unsolicited advice, but if you want some advice I have a few easy improvements for scrolling and sfx you can implement pretty quickly.

Otherwise it's coming along nicely, good work and nice progress
Let's hear em', Mamo.

Jee!

With sfx, if you want to keep sounds from overlapping (and as a result increasing in dB), do audio_stop_sound(sound) before playing the new one. That'll help spending rupees sound a lot better. Here's a simple script I made and use for everything:

Code: [Select]
///@function scrSound(sound)
///@description Play a sound
///@param sound

if argument0 = noone
{
exit;
}

audio_stop_sound(argument0);
audio_play_sound(argument0,10,false);

This will stop the sound you're trying to play, preventing that overlap without stopping any other sounds in the process.

Also for screen scrolling, if you're not already using lerp, I would suggest doing that- IIRC, screen transitions happen in 16 frames (I could be wrong on the exact number), which Link moving 1 pixel in that direction each frame of the screen transition- its quick, and poppy, and most times people don't even notice Link is scrolling with the screen 1px per frame. It all depends on your code setup, but as long as Link moves 1 pixel per frame of scrolling and the scroll lands evenly on the next coordinate (where lerp() comes in handy), it'll look buttery smooth~

Since I don't know how you're handling scrolling right now, the best I can do is break it down like this- when scrolling, lerp(ScrollStartPos,ScrollEndPos,Time) (end pos being one screen size in whatever direction you're scrolling), and then for Link do lerp(LinkStartPos,LinkEndPos,Time) (end pos being 16 pixels in whatever direction the screen is scrolling). Then your Time value is just an iterator that takes 16 (or however many you want really) frames to go from 0 to 1
« Last Edit: June 28, 2020, 03:29:09 am by Mamoruanime »
Logged
Re: [GMS] The Legend of Zelda GBC
« Reply #22 on: June 28, 2020, 07:04:25 pm »
  • ZFGC Founder
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 470
Good lookin' out on the sound function. I'll implement that one right away.

Can you send over a small example file with the lerp function? Not sure how that would be implemented; or maybe my engine is set up in a way that that might not sail.

EDIT: I think I figured out what you're talking about. I was originally trying to emulate the original NES style of transition, but I should have been looking at Link's Awakening. After a little playing around, I fixed both my cave transitions as well as my area to area movement speeds/transitions. I'll post a video here in a moment.

I'd still like to see an example of your solution.

https://www.youtube.com/watch?v=ThkY3FRDbb8
« Last Edit: June 28, 2020, 10:35:14 pm by TheRealMethuselah »
Logged

Miles07

Knight of ERA
Re: [GMS] The Legend of Zelda GBC
« Reply #23 on: June 29, 2020, 12:11:20 am »
  • Long live the Chaos!!
  • *
  • Reputation: +14/-0
  • Offline Offline
  • Gender: Male
  • Posts: 608
... I should have been looking at Link's Awakening.
Yes, but be aware that Link's Awakening also has that infamous screen warp glitch. Just be careful in your implementation. Make sure things happen in the right order.
Logged
I was talking to my friend last night, and he was mentioning about how in 1980, he thought the internet would become this amazing place where people from across the world would share ideas. I was telling him about how this project [KOT] has worked, lurching along for years and drawn by different people from across the globe, and he thought it was beautiful. And he was right, it's awesome. :D

Zelda Items Spritesheet album (OUT OF DATE) - (link here)
A Link Across Time project - (link here)
Boss Keys project (Metroid) - (link here)
Boss Keys project (Zelda) - (link here)
Boss Keys project Trello Board - (link here)
Re: [GMS] The Legend of Zelda GBC
« Reply #24 on: June 29, 2020, 12:30:42 am »
  • ZFGC Founder
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 470
Noted. No worries there; my implementation isn't exactly the same.
Logged

Mamoruanime

@Mamoruanime
Re: [GMS] The Legend of Zelda GBC
« Reply #25 on: June 29, 2020, 03:38:04 am »
  • ^Not actually me.
  • *
  • Reputation: +9/-0
  • Offline Offline
  • Gender: Male
  • Posts: 9786
I'd still like to see an example of your solution.

Here's a very simple demonstration:
programancer.com/ScrollDemoForTRM.zip

It's very very easy, and even this can be optimized a lot. To break it down-

When the player hits the edge of the screen, it calls scrScrollScreen. scrScrollScreen creates the scroll controller object and makes sure to assign the scroll direction and call the initialization event (event_user(0) is used for this). It also makes sure the player is not able to move for the scroll.

The step event for objScrollController is where the magic happens- it lerps both the cameras position and the player's position, then returns control to the player when the lerp is over and destroys itself.

It should be pretty easy to follow.
Logged
Re: [GMS] The Legend of Zelda GBC
« Reply #26 on: June 29, 2020, 04:41:10 am »
  • ZFGC Founder
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 470
Seems easy enough to follow. I'll check it out and see if it's something I can implement in my engine. I'm loading my tiles on-the-fly and areas are loaded in as needed, so I'll need to change it a bit.

Implemented a lerp function; seems a bit smoother:
https://www.youtube.com/watch?v=iNxmdMKPrpw

« Last Edit: June 29, 2020, 05:44:08 pm by TheRealMethuselah »
Logged

Mamoruanime

@Mamoruanime
Re: [GMS] The Legend of Zelda GBC
« Reply #27 on: October 16, 2020, 09:25:07 am »
  • ^Not actually me.
  • *
  • Reputation: +9/-0
  • Offline Offline
  • Gender: Male
  • Posts: 9786
Just checking in- how's progress going?

Interested in seeing what you've come up with~
Logged
Re: [GMS] The Legend of Zelda GBC
« Reply #28 on: April 25, 2022, 03:19:57 am »
  • ZFGC Founder
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 470
« Last Edit: April 25, 2022, 03:24:37 am by TheRealMethuselah »
Logged
Re: [GMS] The Legend of Zelda GBC
« Reply #29 on: November 29, 2023, 06:30:18 pm »
  • ZFGC Founder
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 470
Removed
« Last Edit: December 26, 2023, 03:40:19 am by TheRealMethuselah »
Logged

Broojo02

Derp
Re: [GMS] The Legend of Zelda GBC
« Reply #30 on: December 06, 2023, 03:11:14 pm »
  • Faster horsey!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 89
Nice work - tested on Ubuntu and completed the first level, works great :)
Logged
Re: [GMS] The Legend of Zelda GBC
« Reply #31 on: December 06, 2023, 11:04:40 pm »
  • ZFGC Founder
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 470
Glorious!  ;)
Logged
Re: [GMS] The Legend of Zelda GBC
« Reply #32 on: December 08, 2023, 07:37:56 pm »
  • ZFGC Founder
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Gender: Male
  • Posts: 470
Removed.
« Last Edit: December 26, 2023, 03:40:27 am by TheRealMethuselah »
Logged
Pages: 1 [2]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.206 seconds with 61 queries.