Adobe Dreamweaver Forums



Last 10 THreads :         Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Pop up window using AS3 (Last Post : kglad - Replies : 2 - Views : 3 )           »          more about pop ups - epic fail (Last Post : retsnomrev - Replies : 0 - Views : 1 )           »          Custom cursor flickers like a short-circuiting LED. (Last Post : Chosin Won - Replies : 5 - Views : 7 )           »          can't get rid of the space at the top of my page! (Last Post : mixmasterdsr04 - Replies : 0 - Views : 1 )           »          CS4 - annoying help system (Last Post : Rothrock - Replies : 9 - Views : 10 )           »          My bullets dont work in my game >.< (Last Post : kglad - Replies : 1 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Director > Lingo
 
Tags:



Reply
  #1 (permalink)  
Old 12-02-2008, 10:44 PM
sirkibble2
 
Posts: n/a
Diggs:
Default Creating a boundry in the stage...

I'm new here and I'm taking a class on Director. Unfortunately, my teacher does
not know how to do much himself which is leaving me to come here and seek
advice. Please forgive me in advance for any stupid questions and the like
since I have not learned much.

I am creating a video game similar to
http://www.youtube.com/watch?v=44rceRqY8_k but with a small amount of moving
objects instead of stationary objects. I am not trying to make an exact
recreation but at least something that is playable and fun that can be made in
Di.

I am just taking it one step at a time so my question is, am I able to create
a border around http://img184.imageshack.us/img184/7296/borderhe4.png portion
of my picture. The black border is also part of the same PNG. Is it possible to
create a border in the code so nothing passes that section or does my picture
have to be separate from the black border?

I hope this question makes enough sense. Thank you for any help. ^_^



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-03-2008, 02:16 AM
Rob Dillon
 
Posts: n/a
Diggs:
Default Re: Creating a boundry in the stage...

Yes, you can set a constraint for any sprite on the stage. You might benefit a
great deal from reading "Advanced Lingo for Games" by Gary Rosenzweig. Don't be
afraid of the Advanced part. It's a very good step by step book on building
games with Director. It will explain a lot of the basics that you'll need to
know.

Reply With Quote
  #3 (permalink)  
Old 12-03-2008, 02:26 AM
fazstp
 
Posts: n/a
Diggs:
Default Re: Creating a boundry in the stage...

Code wise you could inflate the rect of the sprite to get the rect of the boundary;

border_rect = sprite( "PNG Sprite" ).rect.inflate( -50, 0 )


Reply With Quote


Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:09 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk