Friday, 17 October 2014

Drag n Drop

The dog's name is Fido (yes, I named him Fido by this point, though apparently I am pronouncing it wrong: fai-do, not fee-do. but i like pronouncing it the latter...). And I decided to dub him the world's smallest dog- at least in my game, as Fido would be the cursor, and it would be less inconvenient to pick up the items if the cursor doesn't end up blocking the items to drag.

Upon a test coding of my custom cursor, I realized a problem: even though Mr Razif had helped me with finding the codes needed for a cursor change from animated cursor when it is moving on the screen to a still image when not moving the cursor, I could not get the mouse to change animations when moving in certain directions, for example left and right, as the code is for x-axis and y-axis. Meaning it only separates between up down and left right, instead of up and down, or left and right. Meaning this Fido:


Was replaced with this:

This Fido looks cuter anyway
So he's always facing the screen, instead of left and right. And I decided to change the coding by using the code snippets in flash, as it was easier to use when I want to hide and unhide the custom cursor between just the scenes with the levels and the other scenes.

No comments:

Post a Comment