[CO] NightCar Custom Object

  • 4 Replies
  • 2526 Views
*

Offline SiamJai

  • 706
  • 31
    • View Profile
    • A gaming blog like no other.
[CO] NightCar Custom Object
« on: January 19, 2011, 10:01:30 »


Now Knytts can have a cool ride too! :)

This is a smaller Knytt-sized version of the classic Night Sky vehicle, animated here as a custom object. It spans side-to-side so it's best placed in the middle, but it's wide enough to work fine a few blocks to the left or right too. At 23 pixels tall, it can pass through a Knytt-sized tunnel, as the demo shows. What the demo doesn't show is the smooth flow of movement; it looks slightly more choppy here due to my recording app acting funny. Check out the real thing!

Code: [Select]
[Custom Object #]
Image=NightCar_mid.png
Tile Height=23
Tile Width=899
Init AnimTo=118
Init AnimSpeed=405
Init AnimRepeat=1


« Last Edit: January 28, 2011, 09:17:50 by SiamJai »

*

Offline LPChip

  • You can only truly help other people by allowing them to fail.
  • 3510
  • 138
  • Excel at the thing you're the best at!
    • View Profile
    • LPChip Interactive
Re: [CO] NightCar Custom Object
« Reply #1 on: January 19, 2011, 11:58:42 »
Can you actually ride it? or will it just be in front of you?
on the left, above my avatar.

MODPlug Central Forum
"If I tried to kill you, I'd end up with a big fat hole through my laptop." - Chironex

*

Offline SiamJai

  • 706
  • 31
    • View Profile
    • A gaming blog like no other.
Re: [CO] NightCar Custom Object
« Reply #2 on: January 20, 2011, 03:43:23 »
It's just like any other CO, players can't interact with it directly. :) What I have in mind is including Juni in another version of this CO, so that creative levelmakers can make it look like the car is actually ridable.


But I gotta sort out the car movement first, it's way too fast and choppy right now.

*

Offline LPChip

  • You can only truly help other people by allowing them to fail.
  • 3510
  • 138
  • Excel at the thing you're the best at!
    • View Profile
    • LPChip Interactive
Re: [CO] NightCar Custom Object
« Reply #3 on: January 20, 2011, 10:43:26 »
You should move the card one pixel at a time, and then use the init animspeed to tweak its speed.
on the left, above my avatar.

MODPlug Central Forum
"If I tried to kill you, I'd end up with a big fat hole through my laptop." - Chironex

*

Offline SiamJai

  • 706
  • 31
    • View Profile
    • A gaming blog like no other.
Re: [CO] NightCar Custom Object
« Reply #4 on: January 28, 2011, 08:57:48 »
That could work nicely, but the object has to move across the full width of the screen, and at 1-pixel increments that would take a lot of steps, resulting in a large sprite.

But thanks for the suggestion. :)



Update: After tweaking the animation, it finally looks like something more presentable. I've remade the vectors and worked out the movement so it's more fluid now. I'll update the demo and sprite in the first post. :)
« Last Edit: January 28, 2011, 09:16:25 by SiamJai »