This text is replaced by the site logo. If not, try enabling javascript.
Advertise
|
About us
|
Site map
|
Syndicate
|
Search site
|
Mailing list
|
View Authors
|
Become an Author
Home
Tutorials
Forums
Articles
Blogs
Movies
Library
Employment
Press
ActionScript.org Forums
>
General
>
Gaming and Game Development
another problem with "platform gaming"
User Name
Remember Me?
Password
Register
FAQ
Members List
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Thread Tools
Rate Thread
Display Modes
10-19-2001, 04:52 AM
#
1
Schlave
Registered User
Join Date: Sep 2001
Posts: 6
another problem with "platform gaming"
okay I'd solved my previous problem about the "person" not being able to land.
Now when the person touches the side of the "block", I can't get him to stop moving to the side (i.e. he moves into the "block").
What should I do?
Code for "person":
onClipEvent (enterFrame) {
if (this.hitTest(_root["block"])) {
this._y += 0;
//here's the problem: what to put?
} else {
this._y += 4;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_root.person._x+=5;
}
if (Key.isDown(Key.LEFT)) {
_root.person._x-=5;
}
}
Schlave
View Public Profile
Find More Posts by Schlave
10-19-2001, 06:05 AM
#
2
Jesse
ActionScript.org Founder
Join Date: Nov 2000
Location: New York
Posts: 8,736
If 'blocl' is a variablet hat should be:
Code:
if (this.hitTest(_root[block])) {
review the Advanced Paths tutorial.
__________________
Cheers
Jesse Stratford
ActionScript.org Cofounder
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
View Public Profile
Visit Jesse's homepage!
Find More Posts by Jesse
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Rate This Thread
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Rate This Thread
:
5 : Excellent
4 : Good
3 : Average
2 : Bad
1 : Terrible
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 Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
ActionScript Forums Group
ActionScript 3.0
ActionScript 2.0
ActionScript 1.0 (and below)
Simple Stuff (Newbies)
Flash General Questions
Flash 10 General Questions
Flash 9 General Questions
Flash 8 General Questions
Other Flash General Questions
Flex
Flex 2, 3 & 4
Flex 1
Extensions and Plugins
Components
JSFL - Extending Flash
Desktop, Mobile and non-browser Environments
AIR (Apollo)
FlashLite / Portable Devices Development
Projectors and CDs
Supporting Technologies
HTML and JavaScript
haXe
Server-Side Scripting
Flash Remoting
Flash Media Server
General
Best Practices
Gaming and Game Development
Animation and Effects
Flashants Support Forum
Community Boards
General Chat
Just for Kicks Challenges
Detention
Flash In Action
Site Check
Cool Sites
Widgets
Decommissioned
Projects and Positions
CMS Forums
Announcements Board
Content Postings / Updates
Product Review Requests
CMS Technical Questions
Process Questions
Collaboration & Suggested Articles
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
global TextField Problem! Guru wonted
mediaholic
ActionScript 1.0 (and below)
3
07-20-2003
10:07 AM
Preloader problem with external movies
ian27
Simple Stuff (Newbies)
16
04-17-2003
12:06 AM
[Q] Problem with zooming the map and the location/size of the movieclip inside of it.
CyanBlue
ActionScript 1.0 (and below)
6
01-13-2003
12:13 AM
No loader problem but a loading problem
agenba
Simple Stuff (Newbies)
1
02-11-2002
06:29 AM
stuck with "platform gaming" code
Schlave
Other Flash General Questions
4
10-17-2001
03:10 PM
All times are GMT. The time now is
07:45 AM
.
///
Categories
Tutorials
Flash
Flex
Articles
Best Practices
Product Reviews
Third Party
Press Releases
The Community
Featured Jobs
Technical Flash Artist
MADISON, USA
iPhone/iPad Developer - CREATIVE CIRCLE
Philadelphia, USA
UX DESIGNER - CREATIVE CIRCLE
Philadelphia, USA
- More ActionScript, Flash and Flex jobs in the Employment Section.
- Advertise a job for free
Contact Us
-
Home Page
-
Archive
-
Privacy Statement
-
Top
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by
RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our
Privacy Policy and Terms of Use
.