Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-16-2001, 09:23 AM   #1
rabsterb
Registered User
 
Join Date: Feb 2001
Posts: 41
Default

hi there,
i'm really right in the middle of making it so, it's unfinished, but a lot of the ain features are there:
http://www.flash-i.com/hidden/sxtray.html

ok, here i go

1. if you notice, there are some trees near to where you start off which 'grow' when it detects a hittarget from the sheep. now the problem is - when you go near the tree again, it goes back small and then tweens up to being big again... is there any way so that once it's big.. it stays big

2. ok, this is my main problem that i really have no idea about.. .

as you'll see if you play the game when the light blue bg ends, the sheep can continue to travel into the black, how can i stop this...

the ultimate main problem >> part b) ... i want the bg to be longer than the stage so it's a quite a long level for the game... how do i achieve this? ... any help with the actual actionscripting would be great along with where to place it in the movie... (ps. i don't want it to repeat the background or anything... i want one massive playable level

------
if anyone can provide me with any significant help, i'll put you in the credits... my last game is listed at ultrashock.com ... it's the least i could do

many thanks,
jeev

rabsterb is offline   Reply With Quote
Old 06-16-2001, 12:00 PM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

can't help with question 1 without knowing how the trees work. I assume it works like this: when the sheep hits the trees they grow. So if you don't want them to grow again you can use a basic conditional:

Code:
treesNotHit = true; // this code goes in Frame 1 of your movie
then you can have you conditional like this:

Code:
if (treesNotHit) {
    if (your hittest code) {
    // grow code
    treesNotHit = false;
    }
}
That way, the grow code will only be executed once.

The other problem could be overcome in much the same way. You could effectively dissable your right button when the sheep reaches the right hand side of the screen for instance, again using an IF.
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 06-17-2001, 11:05 AM   #3
Mortimer Jazz
Thing
 
Mortimer Jazz's Avatar
 
Join Date: Jun 2001
Location: UK
Posts: 2,418
Default

As for the continual scrolling.....
Have you seen the fla for the 'Barney's' style menu?
The menu items are placed vertically on the screen but when you run the fla it joins them up so they scroll vertically as one long menu item.

I don't claim to know enough about Flash to be able to build a game yet but it may be possible to use a similar technique to fool the eye and achieve the effect you want.
...maybe...
I can post you the fla if you want.

Mortimer Jazz is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Q] Do we need those forums??? CyanBlue General Chat 59 07-27-2004 12:13 PM
Position Available: Flash Game Programmer loveboat Projects and Positions 0 08-25-2003 08:49 PM
Any Flash Game Devs around? Goosey Gaming and Game Development 2 03-06-2003 07:57 AM
Another Game questions, might be useful for gamers. Mutty Gaming and Game Development 1 08-11-2002 06:12 AM


All times are GMT. The time now is 07:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.