ActionScript 3.0 :: Static Objects In 3D Space Move On Ground?

May 3, 2011

I am using away3D and I have come across a stumbling block I cant get anyone to answer. I have tried EVERYTHING and I am not getting an answer on away3D forums.I place objects in 3D space. where the houses start at different y -value and z -value for reasons I dont know so they can look level.IT takes about 30 sec to load but here is my example of the problem . The objects move on the ground when they should not. I am just moving the camera. I dont underatnd how you place objects in 3D space in away3D.Here is the issue with my program after MANY hours of endless fiddling. The y value of the plane. It looks the same with value at -100 or -140 but it works at -140 where it is under all ojects. AT -100 it looks under all objects but doesnt move properly. Objects and the plane (ground) dont seem fixed.

// plane = new Plane({material:mygrass, name:"plane", z: 200,y:-100,x:-100, width:1000, height:1000, pushback:true});
plane = new Plane({material:mygrass, name:"plane", z: 200,y:-140,x:-100, width:1000,

[code]......

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Create Space Between Static And Dragable Mc?

Feb 4, 2010

I have six movieclips, actually five digits and one komma lined horizontally. Like this.63,585The decimalkomma is a movieclip which is dragable. I want the digits to move when I move the komma so that the komma has enough space and the digits are evenly spread. I hope you understand what I mean.

View 2 Replies

How To Move A 3D Object In 2D Space

Jun 2, 2009

I'm trying to get used to the new way of doing things in CS4. Once I've created a MC and rotated it in 3D, how can I move it across the screen w/o rotating it further? I have a MC that rotates over several frames, and once it reaches the last one, I want it to stop rotating, then begin to slide in an X direction (while reducing the alpha). But no matter which tool I use or what I do on the timeline, the object is stuck in place and will only rotate and not move. Even the 2D X and Y settings in the properties panel are grayed out.

View 9 Replies

ActionScript 2.0 :: Recognize If Mouse Move! In Short Space?

Oct 26, 2007

I need to do one thing, the target movieclip (one hurricane), keep xscale and yscale going down. if mouse shake (mouse move more than 20 pixel, than last check of time) the target movieclip growing up, else the hurricane keep going down.

View 2 Replies

IDE :: Move Objects Slower Then Other Objects In Fllash?

May 1, 2009

anyone know how to move objects slower then other objects in flash cs3?

View 3 Replies

ActionScript 3.0 :: Objects - Removing The Item From The 3D Space

Dec 10, 2008

I've created a navigation system using Flash 3D functionality. It consists of a MovieClip with a rounded rectangle + a text with no-antialias bitmap font. I'm using Tweener to modify the z co-ordinates of the mc to make it "slide onto" the stage. However when the mc is completed animating it is notably blurry (the text at least). I was wondering if it might just be because it's in 3D-space the perspective (which hasn't been modified) is throwing the rendering off. So onComplete of the animation I try assigning null to the z-value in hopes of removing the item from the 3D space. I've attached the package code I'm using to create and animate the navigation feature.

View 1 Replies

ActionScript 3.0 :: Objects - Putting Dots In 3D Space

Oct 9, 2009

I like to call it a 3D engine, it can display triangles in 3D space and make shapes out of it. It works fine except that I have to manually change/remove/insert the coordinates of the points of triangles that make shapes. I would like to have a more practical way of putting dots in 3D space.

View 2 Replies

ActionScript 3.0 :: Color Objects That Are Flying Around In Space Game?

Jul 5, 2011

trying to color objects that are flying around in my space game.When I shoot and hit them - the affected enemies shall blink. The graphics are pre-rendered (i.e. there's an rotation array and function where the degrees and their appropriate rotation for the objects are stored / calculated for better performance).

So - my idea was to enhance that rotation function with a functionality for additional coloring; but the colored AND rotated objects shall be stored apart of the normal rotated objects. To accomplish this I made a nested array:in row one there are 360 rotated graphics of one object and in row two there are 360 graphics of a rotated and colored object.

Problem: Coloring works but they are not rotated (always at 0 degrees).

Code:
public function createRotationWithColorBlitArrayFromBD(sourceBitmapData:BitmapData, inc:int, offset:int = 0):Array
{
trace("sourceBitmapData.width=" + sourceBitmapData.width);

[code]....

View 4 Replies

ActionScript 1/2 :: Recalculating Space Between Objects On A Fly In Slide Show

Jan 6, 2011

i"m hoping someone can help me with this I'm working with a slide show that has products of different widths. The idea is to make sure that when user clickes  on the next/back buttons and the next (or prev) product shows up - to make sure that the product is not clipped either on left of stage (or live area) or right..

[Code]...

View 10 Replies

Flash Objects Causing Blank Space To Right Of Page?

Apr 1, 2011

My new website is carolineofbrunswick (dot) co (dot) uk. As you can see, there's a ton of blank space off to the right of the pages, and I can't figure out how to get rid of it.

It's caused by the Flash objects in the right-hand column. Changing the width attributes on those Flash objects just causes them to not appear at all, though the blank space still exists.

View 4 Replies

Possible To Move Two Objects?

May 18, 2007

Is it possible to link up x y coordinates of two objects so that if there is a startdrag on one, when it is dragged the other will move with it?

View 8 Replies

Actionscript 3 :: Move Objects By X,y?

Nov 27, 2011

I have homework for my programming lessons. My task is to create balloon shooter game. I done everything in my way, balloons are spawning, counter works. But i cant make them move upwards, i know how to move = y++. That is my problem, i cant figure out where and how. Code below:

import flash.events.MouseEvent;
import flash.events.Event;
var c = 0;
circle.addEventListener(MouseEvent.MOUSE_DOWN, handlerMouseDown);

[code]....

View 1 Replies

On Mouseover Buttons That Move Objects

Jul 27, 2009

I am making a menu that consists of 6 different rollover buttons, these3 buttons sit on a path where the graphics look like a road. What I need to do is have an mc of a car that moves along the road. When the car is at button 1, and you mouseover button 2, the car moves towards button 2, then when you mouseover button 3, the car moves towards button 3 etc., all while the car stays on the road (path) that it sits on - so not like a mouse follow but constrained to the path. I also need the car to go in reverse, so if the car is at button 4, and you mouseover button 3, the car will move towards it.

View 3 Replies

Move The Objects With Mouse Movement?

Feb 3, 2012

I've seen couple of websites [URL]...in these websites the text & the objects move with the mouse moves. I just wanna know how to move the objects with mouse movement or you can say how to make an object follow the mouse (left-right-up-down)

P.S. In the 2nd website there's a 3d character also which I don't have in my project so there's nothing to worry about 3d in flash. I've just couple of images & text

View 2 Replies

IDE :: On Mouseover Buttons That Move Objects?

Jul 27, 2009

I am making a menu that consists of 6 different rollover buttons, these3 buttons sit on a path where the graphics look like a road.What I need to do is have an mc of a car that moves along the road.

When the car is at button 1, and you mouseover button 2, the car moves towards button 2, then when you mouseover button 3, the car moves towards button 3 etc... all while the car stays on the road (path) that it sits on - so not like a mouse follow but constrained to the path...I also need the car to go in reverse, so if the car is at button 4, and you mouseover button 3, the car will move towards it.

View 1 Replies

ActionScript 3.0 :: Populate More Objects And Move Them?

Jan 3, 2010

I'm trying to understand Array and For Loops and they started to make sense. I have this code that generates 100 drops and moves them down but I would like to populate more and more move them down and delete them after crossing the stage (Y direction)..

[AS]var rainDropArray = new Array();
for(var i:int=0; i<100; i++) {
var rainDrop:RainDrop = new RainDrop();
rainDrop.x = Math.random() * 550;

[Code].....

View 14 Replies

ActionScript 3.0 :: Move All Objects On Stage?

Jun 27, 2010

I wonder if there is away to move all objects currently on the stage at the same time without addressing each of them and regardless what obects which are on the Stage. Something along with Stage.y=-50 I know this wont work but is there a way?

View 6 Replies

ActionScript 3.0 :: Getting Objects To Move With Hero?

Sep 16, 2010

my hero moves around the screen but I need to get the "scores" to move with him here is the swf you can actually see how he runs past the "score txt"

[URL]

and here is the fla

[URL]

View 2 Replies

ActionScript 2.0 :: Move Objects To Certain X,y Points?

Oct 29, 2004

I have a main menu box that contains navigation buttons.This box can be dragged anywhere on the screen. If i want a button to move that box to a certain x and y point, no matter where it is at anytime

View 13 Replies

ActionScript 3.0 :: Keep The Player On The Ground?

Sep 14, 2011

I have made racing games in the past, but never a side scrolling type.Im trying to make one similar to this: http:[url]...But how would you keep the player on the ground? well not stuck to the ground because we would want the player to be able to use things like ramps.

View 5 Replies

ActionScript 2.0 :: Making A Ground?

Oct 14, 2008

im making a 2d game with platforms and walls and floors and such, i've got most of the physics i need. gravity, speed, ect. But when he is supposed to stop after "hitting the ground he just goes straight thru. The ground he should stop at is a mc called bg and inside is a mc called platform. what am i doing wrong?

Code:
onClipEvent(enterFrame){
//Keeps Character from going thru the floor, roof & walls
if(this.hitTest(_root.bg.platform)==true
gravity = 0;
}

View 4 Replies

ActionScript 1/2 :: Move All Objects In To ONE MC In The Main Timeline?

Aug 10, 2009

On the main time line I've got movie clip called Z and also n the main timeline I've got another movie clip called B. Inside B I've got a movie clip called C. My problem is - the actionscript written in C makes few objects in the main timeline function (changing colors, displaying notes, input text linked with dynamic text, etc...). I need to move all those objects in to ONE MC in the main timeline (changing colors, displaying notes, input text linked with dynamic text, etc...). But when I move it in to a single MC it wont function! simply the actionscripts won't work!! What should I do to make all those objects in to one mc and still make the actionscript written in C work? p.s. - I've used the _root. command in C.

View 2 Replies

ActionScript 2.0 :: Make Objects To Move Without Tweening

Nov 10, 2003

How to make the objects in your flash move without tweening? example, I have 2 retangles and I want the 1st rectangle to move left and bounce at the edge of the scene. And the 2nd rectangle move to the same direction but not the same speed.
Rectangles are: rectangle1 and rectangle2

View 3 Replies

ActionScript 2.0 :: Resize And Move Objects On Fullscreen?

May 6, 2009

How do I start to program with 3 objects on my page:

"logo_mc", "menu_mc" and "container_mc".

I'd like to put them on correct order when the stages grow (it depends of wich user's screen).

But how does it work? With 3 objects, I mean resize logo, the container and the menu..

View 1 Replies

IDE :: Make Objects Move In A Specific Path?

Dec 1, 2010

i want to make 3 objects move in a square pathi tried to use guide layers but it didn't work good for both three objectsonly the first object followed the exact pathis there some other way to do it??

View 6 Replies

IDE :: Can Make Objects Move With Random Speed

Dec 16, 2010

how i can make objects move with random speed.i have 3 objects but their speed is handeled by the timeline how i can make them move with random speed

View 4 Replies

ActionScript 2.0 :: [fmx] Generic Function To Move Objects?

May 14, 2004

Alright so... I really don't know the best way to approach this. I had a LOT of code that I thought could be generalized into a function. I don't know how to explian it... here is the code:i attached it...I know it's a lot of code... I just... I don't know what to do with it anymore! When it was in a bunch of small functions, it worked (sort of) just seemed reallly messy and annoyed me.Oh btw its causing the hero to jsut go to 0,0 and then a hit symbol appears there, and then nothing happens, the hit doesnt even dissappear.

View 7 Replies

Actionscript 2.0 :: Platformer With Ground And Water?

Aug 21, 2010

i'm currently making a flash game which has ground and water.And its going to be big.For someone whos 13 like me i have problems.The script was edited recently so sorry to anyone who was working on it.the issues are underlined.here the script.

onClipEvent (load) {
grav = 2;
speed = 15;

[code].....

View 2 Replies

ActionScript 2.0 :: Objects Moving Depending On Mouse Move

Mar 13, 2009

URL...Not too sure how to name this issue so its hard for me to search for such a tutorial..

View 1 Replies

ActionScript 2.0 :: Mouse Move Sync With Objects Of Different Size?

Jun 23, 2010

I am working on a Flash photo project where a small image is shown with a square that follows the mouse. Below will be a larger image that moves with the mouse simulating a larger view of what is under the mouse pointer. Though I am making progress with this, I am having problems getting the two pictures to sync up.I am currently using Flash Pro CS5, but have been saving as a CS4 project in case I have to work in it later. I don't know if that makes a different in actionscript 3.0, but I thought I'd include it anyway.I tried to attach my file, but the 300Kb limit stopped me. Here is the code I am using so far though.

Code:
import flash.events.MouseEvent;
import flash.events.Event;

[code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved