The Daily Click ::. Forums ::. Klik Coding Help ::. how do I...
 

Post Reply  Post Oekaki 
 

Posted By Message

Solidus_Snake72



Registered
  21/09/2003
Points
  13
12th December, 2003 at 00:17:58 -

how do I make it so when I press 'd' the character shoots an object in all directions at once?



 
"You want eternal rest? I got it right here!"

eyeangle



Registered
  12/06/2003
Points
  1683
12th December, 2003 at 01:24:49 -

You have to:
Upon pressing d shoot object in direction (up)
+ Upon pressing d shoot object in direction (left)
+ Upon pressing d shoot object in direction (down)
+ Upon pressing d shoot object in direction (right)
...and so on for all the other directions.

 
theonecardgame.com

Solidus_Snake72



Registered
  21/09/2003
Points
  13
12th December, 2003 at 02:49:16 -

ahh ok thanks

another problem...my game is a birds eye view. In one part of the map is a place surrounded by walls. To get in you have to kill the gate guard. Once he is killed the gate (active object) will be destroyed allowing you to enter. I have done all the conditions for the monsters when they hit a background object they bounce and they wall is on obstacle:yes. I also made it when they hit the gate they bounce as well. Now the player starts off on the other side of the map and when I get to this place all the monsters that were meant to be inside the walls are outside. I tried making the player start right outside the walls just to see how they go through the walls but they dont. Can anyone help?

 
"You want eternal rest? I got it right here!"

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
12th December, 2003 at 04:01:49 -

You have to enable 'handle background collisions even out of window' in the frame properties.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Solidus_Snake72



Registered
  21/09/2003
Points
  13
12th December, 2003 at 06:22:16 -

whoo!

thanks

 
"You want eternal rest? I got it right here!"

Tiles

Possibly Insane

Registered
  06/12/2002
Points
  2339

GOTM 3TH PLACE WINNER - JANUARY 2010
12th December, 2003 at 09:14:09 -

it is also a good idea to untick the "destroy object if too far from frame" and "inactivate if too far from window" in the objects properties/ scrolling in this case...



 
Free graphics,Free Games
http://www.reinerstilesets.de

cake



Registered
  13/12/2002
Points
  1173
12th December, 2003 at 22:03:07 -

Also another way to shoot an object in every direction is:

Player pressed 'd':
Start Loop 0 for 32 loops

Loop Trigger 0:
Shoot object in direction (Loopstep of 0)

 
n/a
   

Post Reply



 



Advertisement

Worth A Click