Game
Desert Child
7 years ago

Spidre Mna, Spidre Mna, Does whatever a Spidre can


So I’ve been really focusing on getting Act II of Desert Child kinda of looking presentable. I’ve been busy writing this scaling algorithm so I can make all these different camera angles work seamlessly.

It’s inspired how old adventure game’s did it, but hey I’m not here to reinvent the GML wheel.

5d0a8dc64108b.gif

Here’s the basic code:

minScale = objCharScaleAnchor.image_xscale
maxScale = objCharScaleAnchorMax.image_xscale

image_xscale = ((maxScale-minScale)/(objCharScaleAnchorMax.y-objCharScaleAnchor.y))*(y-objCharScaleAnchor.y)

if image_xscale >= objCharScaleAnchorMax.image_xscale {image_xscale = objCharScaleAnchorMax.image_xscale}

image_yscale=image_xscale

So basically, I just drop an object called objCharScaleAnchor on the horizon line, then drop another one called objCharScaleAnchorMax bellow it where the camera would be. I then scale objCharScaleAnchor down to be the size it would look like if it were off in the distance.

Then the player character moves along the line between both those objects. So i can create a whole bunch of different camera heights and angles.

5d0a8dc72b7ff.gif

Drawbacks include:
-I can’t have terrain that changes level. This system assumes the plane you’re walking on is perfectly flat. (If you look at the gif above long enough, you’ll see what I mean.)

-I can’t jump. This is easier to solve, I just need to add a Z value to objects, but I wasn’t planning to add jumping, so yeah. This is basically why I made this system instead of just using game maker’s in-build 3D system, I don’t want to dick around with Z values and billboarding.

-I can’t have the camera rotate. It can only pan vertically and horizontally. Again, this wasn’t something I was going to do, as it would be a nightmare with the rotoscoped character animations.

I’m liking the results. I’ve got it working in a bunch of non-scaling scenes, too.

5d0a8dc9dc1ef.gif

As you can see, I’ve been doing some rotoscoping too. I’ve tried to resist the urge to rotoscope Peter Parker doing his strut from Spiderman 3, but It’s still coming though a little.

https://www.youtube.com/watch?v=6Ron-Ikenfc

Oh, and merry christmas! I’ll be pushing through, I don’t really celebrate christmas, and hopefully have a cool, cool update about systems and stuff after the break!

Damn, I really should have done a christmas update. Oh well.



2 comments

Loading...

Next up

Keep the Kangaroos in front of you, and try not to run them over or shoot them (you monster), or have them get behind you. Equipping the Martic Laser Sight can help in this activity.

Did anyone else pick up on this?

Nanomon gives you the chance to raise a pet monster from the safety of your own desktop! Check it out: https://gamejolt.com/games/nanomon/828510

For a hefty price, you can go to Wireless Hill and pay for 3 days protection against the police if your notoriety level gets too high.

perfect weather for heading out and picking up some bomb ramen 🍜💯

Unlike the real world, the bank in Desert Child provides 3% daily interest on money that is deposited.

Hey Racers! New Olympia is feeling festive this month, so check it out before it disappears! Bug Fixes

The background no longer tears in certain maps

All Halloween elements during races have been integrated

Happy Halloween from New Olympia!

Patch 1.1 is LIVE NOW on Game Jolt!

We've added a gun shop to the harbor, new podcasts to the record store and a load of quality of life changes that riders have been asking for!

Read the full notes below!

Don't smoke...smoking kills

You can deliver pizzas at L'Antica for additional cash, but shooting TVs will not give you any extra cash.