Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - munchiez

#1
I'm having some troubles with a function I've written. Basically it turns an object into a chicken that randomly around walks and pecks at the ground.

The function is called in a room's repeatedly_execute. It works just how I want it to, apart from one small problem. When the chicken stops walking, I need the walking animation to stop.

The AGS scripting language is new to me and I can't for the life of me figure out how I might go about this. If I could somehow store the destination coordinates for each object I could compare the current coordinates and call object[num].StopAnimating(); when they match.

There's probably a much easier way of doing this, but here's the function: :P

Code: ags
function Pecker(int num) {

	// If chicken is not moving
	if (object[num].Moving == false) {
		int rnd = Random(100);

		// Move
		if (rnd == 1) {

		  // Get new coordinates
			int new_x = object[num].X + PosNegInt(Random(20));
			int new_y = object[num].Y + PosNegInt(Random(10));
			
			// Get direction object is facing, start animating
			if (new_x > object[num].X) {
				object[num].SetView(5, 0);
				object[num].Animate(0, 4, eRepeat, eNoBlock);
			}
			else {
				object[num].SetView(5, 1);
				object[num].Animate(1, 4, eRepeat, eNoBlock);
			}

			// Move to new coordinates
			object[num].Move(new_x, new_y, 1, eNoBlock, eWalkableAreas);
		}

		// Peck ground
		else if (rnd > 98) {
			if (FacingLeft(object[num].Loop)) {
				object[num].SetView(5, 8);
				object[num].Animate(8, 4, eOnce, eNoBlock);
			}
			else {
				object[num].SetView(5, 9);
				object[num].Animate(9, 4, eOnce, eNoBlock);
			}
		}
	}
}
#2
Critics' Lounge / Cottage background WIP
Wed 09/05/2007 00:38:08
I was hoping some of you guys might be able to help me improve this background for a game I've (finally!) started working on.

Generally I'm pretty happy with the background, but there are a few things bugging me about it.

I'm not sure my outlines are too great. Should I anti-alias them? I had a go but it just seemed to make it look blurry in full screen mode.
Is there enough contrast between the colours (especially on the trees)?
Something about the pathway looks odd, but I can't quite figure out what!
I'm at a bit of a loss as to how to shade/texture the grass.

#3
It's been a bit of a sad week for sport with football legend George Best and rally champion Richard Burns both passing away on Friday.

This week it'd be nice to see some of the world's great sports stars immortalised as sprites, so the theme is:

Sporting Legends

Draw a sporting legend (living or dead) either doing what they do best or, for an added twist, something you wouldn't expect to see them doing (i.e. Mike Tyson as a ballerina!)

Rules

Size: Max 150 x 200px
Colors: Any

This is my first sprite jam so if it's crap let me know and I'll think of something else :P
#4
Critics' Lounge / Hillside background CC
Mon 25/07/2005 16:23:51
Hi all, new to the boards, though I've been lurking for a couple of weeks. :)

Any ideas on what I can do to improve this pic? I'm not sure about the tree's leaves and something just doesn't look right with that wall up at the top.

It's for a horror game based on a Stephen King short story, so any pointers to add a bit of atmosphere would be appreciated.

I'm going to clean up the tree and add a knot or branch in that dip halfway up (I know the edges could do with a bit of tidying up too).

SMF spam blocked by CleanTalk