Aum's faq list

Posted By: George

Aum's faq list - 11/14/06 20:26

This post will (hopefully) contain a list with all the questions (without the answers) that have appeared in Aum's faq section. This way, if you need to solve a coding problem quickly, you will be able to locate the needed magazine without having to go through the entire collection.

Here's my first contribution; I hope that others will get involved as well.

=====
Aum60
=====

Q: I would like to display several pictures in a random order, matching the value of a random variable.
Q: Can you tell me what is vec_rotate? Where and how do I use it?
Q: Do you happen to have the code for a particle effect which will be created at a model's vertex position and will move upwards?
Q: I need a bonus score bitmap that appears on the screen and then moves upwards but fades away before it gets to the top of the screen.
Q: I need a function that reads a text from a file and copies it into string. Can you help?
Q: Is it possible to allow the player to walk on a sphere?
Q: How can I rotate a model around a certain vertex?
Q: How can I input some text? I mean like a text for player's name beneath his health bar.
Q: How can you position anything on an entity's coordinate axis instead of the world axis.
Q: In my game I have created a swamp. If I touch the swamp block and the player is moving, I want to hear the swamp.wav sound. How can I make this possible?

=====
Aum59
=====

Q: I am using the flares from Aum37. I'd like to give them the ability to bounce off walls and entities - can you help?
Q: I have tried to use the shader from Aum XY but it didn't work; when I run the code I get the error "Malfunction ...". What should I do?
Q: How can I set the speed of the animation the way the animator wanted it to run? I want to play the animation at 25 fps no mater what the current frame rate is.
Q: Can you tell me how can I prevent the rifle from Aum58's workshop to go through the walls?
Q: How do I get my player to move regularly over an mdl surface? Right now the player just falls or walks through the terrain and doesn't detect it all.
Q: How do I turn off the creation of those annoying *.sav files?
Q: How can I have a light that glows systematically (like a red alarm)?
Q: I'd like to have an animation that starts slow, but goes much faster in the end, like a power hit with the sword.
Q: How can I synchronize lightning effects and thunder sounds?
Q: I need a key that can be picked up and a door that automatically opens when the player walks up to it (and has the key).
Posted By: mpdeveloper_B

Re: Aum's faq list - 11/14/06 23:49

Q: i need to work on some ai, where can i find some that can work with my game?
Q: i need car ai, where can i find a working example?
Q: how can i work on making a lens flare, where when the player gets closer the flare gets smaller, and if he backs off it gets bigger?
Q: how can i make a sun flare that works like the default one, without using templates?
Q: how can i blend animations correctly using ent_blend?
Q: i want to know how to play an animation through after the player has pressed a button, even if he releases the button the animation should play all the way through, how do i get this effect?

i could also use a little help with the animation stuff and the sun flare

glad to help out george, seeing as this is your area of expertise
Posted By: vlau

Re: Aum's faq list - 11/15/06 08:28

Here is the list for Unanswered questions (quesions only)
from Aum51 to Aum58 :


======
Aum 51
======

Q: I use the access code from Aum33 in my game and it works ok.
What should I change in order to make the door move upwards?

Q: I want to use your exequte function from Aum37 by attaching it
to a clickable entity. How do I do that?

Q: I'm using your camera code from Aum2's faq. When the player turns,
the camera turns with the same speed, but I want the camera to turn
slower. Can you help me?

Q: When I run my game after building the wmb, the splash screen stays
there instead of my game starting.

Q: Your serious grass script from Aum50 is great, but is it also possible
to recreate it as a action and assign it to an entity? For example, if the
player comes close to a entity, the entity random creates the grass models.

Q: I have a question concerning your Aum21 "Thanks" game. How can I shoot a
rocket even if there is another one in the level already?

Q: I have a large sky cube because I want high detail, but I have noticed
that it consumes a lot of memory. What would be the best method of keeping
good detail but not killing the game?

Q: Is there a way to display the movement of an entity on a panel?

Q: How can I use "bounce" to set the orientation of a bouncing object?

Q: Can anyone give me a sliding doors script that I can use in together
with my non-template wdl? I need to open a number of different doors by
using the space bar.


======
Aum 52
======

Q: I enjoyed the "elevators for skyscrapers" code from Aum36. Can I use
the keys on the keyboard to go to a certain floor? "1" would take me to the
first floor, "2" would take me to the second floor, and so on.

Q: How can I move objects using the mouse? When you click an object and
move it around the object should follow the mouse.

Q: How can i have a multi-language game (English / German)?

Q: How can I create a simple 3D side scrolling player and camera snippet?

Q: I'd like to know how to set the frame rate directly. I tried setting
fps_max at 60 but I was getting 56 fps. If I set the fps_max at 70, it was
running at 66.7 or so. Classic games, like Sonic and Mario, run at 60 fps and
the frame rate is kept as is. It's either I run at 56 (too slow and a little
jerky at times) or 67 (too fast). How do I set the fps at exactly 60?

Q: I'd like to have a switch that turns on / off a light; more than that, it should pop up a text when the player is touching it with the mouse. Is this possible?

Q: I want to place a panel on the screen (2d coordinates) exactly over a special 3d position. How can I do that?

Q: In my game I have a gun model. I don't want a player model but I want the gun to be attached to the screen like in a fps game. Can anybody help me?

Q: Has anyone tried to run the engine in a frame? I can see how it would be done using panels, overlaying the areas you don't want showing - but isn't that a waste of resources?

Q: Can I display the engine version on the screen? I am a beta tester and I'm not sure what version I'm running at a certain moment.


======
Aum 53
======

Q: Have you got a small clipping range example for us?

Q: I can't figure out how to run the older Aum scripts in full screen mode. They keep appearing as a large window. How do I fix this?

Q: How can you make an entity face another entity that triggered an event? The rotation should be progressive, using the pan angle.

Q: I am trying to make a simple 'collect 10 items and win' type game but really don't have a clue about coding. I would like an audio file to play every time I collect an item and I'd like a music file and splash screen to appear when all the items are collected.

Q: I have spent hours trying to figure out how I can add jumping to your code from Aum52's workshop. Can you help?

Q: How can I let 3DGS check if the game has been started with a specific command line (parameter)? If the parameter is missing I'd like to show a panel which says that the game wasn't started with the needed shortcut.

Q: Is there any way to stop my character from going through parts of my models? if I make a table the model goes through it until it hits a certain point or it can't get around the model because it's like a barrier around it.

Q: I've made a menu for my game with an "options" section. What's the best way to save the settings so that they don't reset back to the defaults every time the game is run?

Q: I want to play a sound with a random change of frequency. When I do that, the frequency of the other sounds that are played in my game is changed as well. How can I stop that?

Q: I was wondering how do you create a button that plays a full screen movie and then, only once the video is finished, loads a level.


======
Aum 54
======

Q: How can I play several music files in a loop, one after the other?

Q: How can I highlight an object in my strategy game by moving the mouse over it?

Q: How can I run a "while" loop (every frame) for a specified number of seconds?

Q: How can I create a decent looking torch effect?

Q: Can I play an animated movie (my logo) at the beginning of the game, and then display the main menu?

Q: How can I have an object that follows the player at all times? I'd like to be able to specify the distance to the player as well...

Q: I'd like to control the ambient in my game using the mouse wheel. Is this even possible?

Q: Do you know of a tool that can create robotic speech?

Q: I want an entity to become "player" if I click on it.

Q: How can I animate a sprite using ent_animate? I can't see the animation frames!


======
Aum 55
======

Q: How do I change the "eball" snippet from Aum14 so that I can fire the energy balls by clicking a panel?

Q: How can I put a looping avi in my space simulation game, inside the level?

Q: How can code it so when the player touches a model, that model plays an animation?

Q: I am trying to create menu that isn't using the mouse. How can I "click" a button if the cursor is placed over the button and I press a key on the keyboard?

Q: My player character is blocked by an invisible box around the objects, and not the objects' shapes. I seem to remember reading that A6 has polygon precise collision; how can I activate it?

Q: Is it possible to copy the value of a variable into a string?

Q: Is there any event that happens if an object doesn't touch any other object? Or is there any possibility to script that?

Q: How can I activate a switch using the middle mouse button?

Q: How can I create a panel at runtime using the new pan_create function?

Q: How can I attach a non-animated sword to my player model?


======
Aum 56
======

Q: How do you create a button that once clicked, loads and plays a full screen movie and then, when the video is finished, loads a level?

Q: Is it possible to make the player move only to the left and right side of the screen? When I press the left and right keys, the player rotates and I don't want that to happen.

Q: How can I stop a sound which was started with media_loop?

Q: Is there a way to run an external .exe from within a 3DGS panel? If so, how?

Q: I want my "stand" animation to start playing after 10 seconds, if no keys are pressed.

Q: I have downloaded several DLLs from Acknex Unlimited, but I don't know how to use them. Can you help?

Q: What can you do with those "positions" that can be added in Wed?

Q: How can I detect the distance between the player and a 3D sound source?

Q: I'd like to have a hallway that leads to several doors; each door would load a different level. Can you help?

Q: How can I create the code for an intro / splash screen movie that can be skipped using the "Esc" key?


======
Aum 57
======

Q: When my player shoots the walls I'd like to have a bullet hole effect.

Q: Can you show me a radar view example?

Q: I have a question about the customizable user interface from Aum 39. How can I move and keep the panel where I want it even after the engine is shut down?

Q: How can I check the name of a model from within the engine (like "pizza.mdl")?

Q: I need to use two sets of controls; the movement would be done with WSAD and the camera movement with the arrow keys.

Q: I would like to add a login module to my game so that the players can create a profile with different settings. These settings would be written out to a text file so that nothing is lost.

Q: Is there a way to hide the mouse pointer while I am using inkey to input some text?

Q: I want to have a model that behaves differently if it is shot or if the player is near it and presses a key. Can you help?

Q: How do I set up a key trigger? I would like to open a door by pressing space when I am near it.

Q: I would like to have a camera that follows the player and turns with it.


======
Aum 58
======

Q: How can I have an entity that rotates towards the player slowly if the player comes closer than 300 quants to it?

Q: I'm using the compass from Aum45. Is it possible to add a little wiggle to the needle when the player moves?

Q: I'd like to create day / night transitions using a fading entity. Can you help?

Q: I'm using your maniac-script from Aum3. Can you help me by adding gravity to the evil plants?

Q: How can I lock the player inside a big room with several doors that close one after the other?

Q: I need to have a box that can be pushed by the player. Can you help?

Q: Can you show me an example of a camera that turns slower behind the player?

Q: Do you happen to have a typewriter snippet example?

Q: How can I create a health pack that can be used by the player, as well as by its enemies?

Q: Is it true that the speed of the c_scan instruction depends on its scanning range?
Posted By: George

Re: Aum's faq list - 11/15/06 08:58

Thank you for the post, Vlau. I appreciate your effort; let's hope that others will add the missing questions.
Manslayer101: this section is supposed to list the questions that were answered in the previous AUMs. I collect these questions from the forum and I answer them in the magazine if the needed code requires a reasonable amount of work and can be used by many users.
Posted By: PHeMoX

Re: Aum's faq list - 11/15/06 11:18

|| AUM 50 ||

Q: I use your text engine from Morrowing. How can I have a different number of answers to choose from (1, 2, 3, or 4 answers)? Your code works fine, but I can’t have more than 2 answers at once.

Q: How can I show this message in my game: "Hello guardian, who are you?". The message must appear when I click an entity.

Q: How can I find the distance from mouse_ent to the camera?

Q: I have tried to create a dll but I can't use the function inside it; I keep getting this error message: “function not found in dll” although the function is there. What should I do?

Q: How can I have a weapon (in the first person mode) that affects the amount of light in the level?

Q: I'd like to have a weapon that needs to be reloaded after firing 30 bullets, using ammo packs. Can you help?

Q: How can I tell if a certain model exists in the game's folder?

Q: How can I pass an entity and the RGB colors as parameters? I'd like to create several colored entities using the same model.

Q: How can I make it so that when I touch my entity, it gives me this message: "Hi! I am darth vader"?

|| AUM 49 ||

Q: How can I create a main menu that includes a fire effect like in Quake3?

Q: I'd like to have a fly through, as well as a player's camera in my game. Can you help?

Q: Anyone knows how can I resize the in-game view" I have the game running at 1024x768 resolution, but I want to have a panel with a size of 1024x200 at the bottom of the screen and have the game running inside a 1024x568 window.

Q: How can I add several actions to one entity?

Q: I'd like to have entities that react when "space" is pressed, if they are "touched" by the crosshair. How can I do that?

Q: How can I create a sky that uses a sprite and the "cylinder" flag?

Q: I have captured video inside one of my games and I edited it with Windows Movie Maker, adding some cool effects to it. How can I take that file and use it in my game?

Q: Is it possible to make a quiz with A6?

Q: How can I get the closest vertex to the point where I have shot an enemy?

|| AUM 48 ||

Q: I use your split screen shooter from Aum 30. I was wondering how to change the firing rate; the weapon should fire every 1.3 seconds.

Q: What is the easiest method of creating a game like Virtua Cop? I want to use a lightgun so very simply put I need to just be able to "mouse click" on an enemy to kill it.

Q: I use your Star Wars text script and I was wondering how can I load a different level after the text has passed the screen?

Q: I don't like it when all files are in a single folder so I would want something like this.
- scripts
- graphics
- models
I don't want to use absolute paths, because the game can't find the scripts if I move the published game to a different folder. Can you help?

Q: Why does the engine think that my models are at a different place than where I put them in Wed?

Q: How can I attach a fps camera to an entity, say a car for example?

Q: I am having some difficulty clipping my particles in my level; it seems that no matter how I change my script the particles are not clipping.

Q: How can I remove all the entities from a level, even if they don't have an action attached to them?

Q: If my character starts the game facing one way how can I make it so she only walks the way she is facing and can't turn?

|| AUM 47 ||

Q: I use your forest script from Aum12, but I'd like the trees to be placed beside the road. Is this possible?

Q: I'd like to have some particle sparks appear where an object makes contact with the level geometry. Can you help?

Q: Just wondering if you may have a health bar script handy.

Q: I don't know how to trace forward (in player's looking direction). Is it possible to have a code that that is doing this?

Q: How can I create the code for a blurred view effect that doesn't use too many resources?

Q: I can't use "sleep" to count big time intervals because it isn't precise enough. Can I use sys_seconds instead?

Q: How can I create a simple login / password system for my game?

Q: I'd like to have only 3 objects appear randomly in 9 predefined positions. How can I do that?

Q: I'd like to see how my game performs on low end PCs, but I've only got one PC and it is pretty fast. Is there anything I could do about this?

[more to come, just posting this for now in case I mess up]

|| AUM 46 ||

Q: I'd like to have a tv that turns itself on / off depending on how close the player is to it. Can you help?

Q: I haven’t been able to update the intelligent elevator script to work with the later updates of A6. Can you help?

Q: I need to display a picture when the player approaches an invisible object at the end of the game.

Q: I was wondering if you could tell me how to create a star wars lightsaber effect.

Q: I use the starfield code from your "Planet Survivor" series. Is it possible to modify the code so that the starfield is always in front of my spaceship, even if I change its pan and tilt and I move it?

Q: I'd like to be able to go back and forth in my levels, while keeping the initial player pan angle. How can I do that?

Q: How can I create a cylinder of particles?

Q: If I have a panel with 3 buttons, can I hide one or two of them at times and show them again at another time?

Q: Can you show us how to use the mouse wheel in order to zoom in and out smoothly?

|| AUM 45 ||

Q: In Aum 21 the tanks have no gravity and if they are up in the air they will not go down the bottom. I know that this code was written for A5 but I'm trying to get it to work for A6; can you help?

Q: I was wondering if you could show me how to set up a rotating camera? Say you are in a room and you press 's' to start the camera rotating in around 360 degrees and then press 's' to stop it.

Q: I'd need a little jump-pad type code. I've positioned entities throughout the level, and when the character runs on them I'd like him to be thrusted about 30 - 40 scaled feet into the air. I'd also like to have a sound file associated with the trigger.

Q: I want to determine exactly where the bullet hits the entity. How can I get the closest vertex of the model?

Q: I'd like to have a panel that can be closed by clicking a small "X" in the upper right corner. Is this possible?

Q: How can I create a cone of particles?

Q: How can I smoothly fade one view into another?

Q: How can I replace all the "a" characters in a string with "b" characters?

Q: I'd like to be able to create objects (trees) at runtime and place them in front of the player. How can I do that?

|| AUM 44 ||

Q: I am using your security camera from Aum22. How can I scan for entities every second instead of using a random value?

Q: I'm using your security camera (Aum22). What can I do so that whenever the camera scans for entities, a small red light on the camera will be turned on and off?

Q: Can you please modify your force field code from Aum26? If I would set skill3 to 5 in Wed, the field would be on for 5 seconds and off for 5 seconds, and so on.

Q: Can you tell me how can I use health packs for the player from Sword Combat (Aum12)?

Q: How could I create an abyss which would kill the player if it falls into it?

Q: I was wondering if you can attach a sprite to a model and turn it on and off, depending on how close the model is to the camera.

Q: I'd like to have a pulsing crosshair: white cross - red cross - white cross.... Can you help?

Q: How can I create a shootable target that spins when you shoot it?

Q: How can I create a swarm of particles (bees, whatever) that keep rotating around the player?


|| AUM 43 ||

Q: I'd like to be able to rotate the camera around a specific entity (the target) when I press the left and right keys on my keyboard. Up and down should take me closer or farther to the target. Can you help?

Q: How do they do the movement in games like Prince of Persia? The prince is grabbing onto poles and swinging around; how do they make sure that the hands are placed perfectly on the pole every time, even if the distance you jumped from wasn't the same every time?

Q: If I would kick a box, how would I program it so that it moves in the opposite direction without losing its original pan and tilt angles?

Q: I want to create an inventory panel with four guns; the pcx image won't show up until I have picked up the corresponding weapon. Can you help?

Q: How can I create a splash screen that pops up before loading a level and disappears after a key is hit? The code should work for several levels.

Q: In some games, if there is an object that should be picked up or examined, the player will turn its head as you move near the object. How can we do that?

Q: I have a problem scripting the movement of a spacecraft that can go forward and make turns (it's a 2D game). I need the ship to 'slide' in turns, just like a car riding on ice. Can you help?

Q: I use your "intelligent music" snippet from Aum38. How could I assign that action to as many entities as I want without having each of them playing their own instance?

Q: Can you attach a typing sound to inkey somehow or do you have to write a new input function?

|| AUM 42 ||

Q: I'd need the code for a camera that allows you to fly freely in the level, and yet use collision detection. Can you help?

Q: Can you please tell me how can I use my models as a "resource"?

Q: Is there a simple method that would allow me to compute and display the number of frames per second? I can't use the default debugging panel in my game.

Q: I'd like to be able to control 200 different actors for my strategy game but I don't like the idea of defining 200 separate pointers for them. What can I do?

Q: I need to place many trees at certain positions on my terrain and doing that in Wed takes too long. Is there an alternative method?

Q: I'd like to show an "Alert!" panel on the hud whenever one player's enemies can be seen. How can I do that?

Q: Is there a simple method to create a "hot" floor that would decrease player's health?

Q: Would it be possible to turn on the lights that are close to the player automatically and turn them off as soon as the player gets away from them?

Q: How I create a fire ring that follows the player all the time?

|| AUM 41 ||

Q: I use your cutcam.wdl from Aum6 but I'd like to be able to look around while the camera follows the path. Can you help?

Q: I use the 3rd Person movement code from the Aum37's faq. It works great, but I'd like the camera to pan around the player when the mouse is moved to the left or right. Can you help me?

Q: In Aum6 there's a car demo script. How can I remove the damage code to make it invincible?

Q: I started to create a game. When the player changes the level I want to play a cutscene movie, then a level1.wav file, load the second level and then play the level2.wav file. How can I do that?

Q: How can I attach a weapon to the player in 1st person mode if I can't use a "entity" definition?

Q: When we shoot between the enemy legs we will hit the enemy instead of the ground. Can you help, please?

Q: How could I create a splash screen? The player would have to press the "Space" key in order to continue to the game.

Q: I was wondering how I can use the multidimensional arrays in A6.3.

Q: How I can make a part of a house transparent, so that I can see the Soldiers inside it?

|| AUM 40 ||

Q: I'd like to have a dynamic light source that changes its color gently between 2 specified RGB colors. How can I do that?

Q: I have a question about the force field code in AUM 26. Could I shoot the force field to turn it off?

Q: How would I go about writing a code to make a door open vertically kinda like a garage door? Also with some kinda switch to activate the door?

Q: I have a question about your code for Thanks, the tank game from Aum. When I drive forwards I can drive thru all the walls. I use A6 commercial; can you help me?

Q: I'm having some trouble with some particle effects; on startup the engine is showing the error 1517 - no level. After clicking OK, the level is running as expected. Can anyone give me a solution?

Q: I was going through George Pirvu's pathfinding tutorial from Aum. I used the code in Aum31 exactly as it was. If you try to use the code in any level other than the one that was provided with the tutorial, during runtime, you keep getting "invalid array index" errors. Has anyone used the code from that tutorial and made it work for themselves?

Q: I understand that A6 has a limit of 8 dynamic lights at the moment. I was wondering if it would be possible to use more lights by monitoring player's position in the level and removing the lights that are far away from it.

Q: I'm trying to figure out how to get a model of a person to respond to contact like a bruise.

Q: Any pcx file shows the black color (RGB: 0,0,0) transparent. Is this a problem with my computer? How can I fix it?

Q: I have trees, bushes and grass textures. How do I turn them into tga sprites with transparent backgrounds?

|| AUM 39 ||

Q: I liked the "Intelligent music" article from Aum38; how can I make the music change from gentle to tense and back every time I come close to / get away from the entity?

Q: I would need some code for an actor that waits until the player has come close to it and then rotates towards the player, plays a sound and creates 3 entities. Can you help?

Q: I liked your "Editable texts" article from Aum38; I was wondering if I could use that code to display some numbers for my game.

Q: I am using the race script that was developed in Aum. How can we make player's car create sparks when it hits the wall?

Q: I am using the access code from Aum 33; how do I edit the door script to make it open upwards?

Q: I haven't figured out how to make a script file for my models when I use the A5 export from milkshape. Can you help?

Q: I need a script which makes an entity invisible and visible every few seconds. If you shoot the entity and it is visible the player will get some points. Can you please help me?

Q: I need a simple level changing script when I move over an entity and then I want to play a movie file for a cutscene. Can you help me?

Q: I wish to create a game involving combat where 2 people fight each other using swords. It would be neat to be able to show sparks flying when swords meet. Is it possible with the physics engine to get the position of the collision (or some other smarter technique) so I can see which parts of the models collided?

|| AUM 38 ||

Q: How do you get one actor to follow another?

Q: I'm trying to write my own weapons. How can I attach particles to the trace instruction? I don't want the script written for me just an idea.

Q: I have a model of a tree. I want to be able to walk right up to the trunk, but the bounding box won't allow me to do that because of the leaves.

Q: How can I close a gate (as a trap) behind the player if he's walking through a laser beam?

Q: I need some simple level changing code for a project that includes 9 levels. A simple box and a figure that shows the level number will do the job.

Q: I'm making a game and I was wondering know can I insert a movie (avi) file. At a certain point the movie would be triggered.

Q: How would I go about reading the names of planets from a text file into an array, set random x, y and z coords for each planet, save these to a new file, and then load them as the player approaches?

Q: I tried the project from Aum37's faq (moveps2.zip) and I'd like to ask you to make a small change to it: when I turn and want to go in that direction I'd like to push "W" for forward, whatever direction that is.

Q: How can we make big levels with terrains but don't lose performance ?

|| AUM 37 ||

Q: I tried your physics demo from Aum36 but it didn't work with A6.20 commercial. Am I doing something wrong?

Q: I'm trying to use different panels for different views. Let's say that I use panel1 for 1st person view, and then, when I press F7 to the next view (say 3rd person view) it turns off panel1 and changes to panel2. How can I do that?

Q: How can I create an analog clock?

Q: I like your physics code in AUM36, it is quite impressive. I was wondering, though, how you made the movie?

Q: How do I create a ball that picks a random speed and a random direction? And how do I make it bounce off the walls in a random direction?

Q: We use the chopper code aka takeoff.wdl to make our own in-game cut scenes. We are wondering if you can tell us how to make the chopper fly away and return to the game without shutting down the engine.

Q: Can you add the code for speed boost to your AI car demo? When a car collects some item it gets a speed boost for a few seconds.

Q: I use your car AI and when I crash the car into walls, I'd like it to move a bit backwards, like in a real crash.

Q: What I am trying to achieve as far as player movement seems to be a standard movement among most 3rd person games (Maximo, Metal Gear Solid, Rygar, Devil May Cry, etc). When the player pushes forward the character moves forward. When the player pushes back the character turns and moves backwards. The character will rotate and basically move in the direction the player desires. Can anybody help?

Q: In Aum18 there's an inventory workshop; it has a ring which's used to cast a fire that's so great, but the fire doesn't hurt anyone...

|| AUM 36 ||

Q: How can I move just a single row of vertices in a certain direction in Med?

Q: I'd just like to know how I can find out how many guys are touching an entity.

Q: Is it possible to code your full screen flare effect from Aum34's faq in such a way that it will work ok if the pan angle for the sun isn't zero?

Q: I'd like to see some code sample that moves the player like in modern games (WS = forward / back, AD = strafe left / right, mouse rotates the camera view).

Q: I'd like to use your Splinter Cell code from Aum32 with shootable lights. Is this possible?

Q: How can I make the player scan for entities?

Q: How do I get a model to constantly look at the mouse cursor?

Q: Can anyone tell me how can I create a bullet for my 3rd person character?

Q: I use your car scripts as a base for my driving script, but I ran into trouble with handling slopes and aligning the vehicle to slopes. Can you help?



|| AUM 35 ||

Q: How can I display the status of a flag using the instant debugger from Aum25?

Q: I would like to have a much bigger size digits for my Ammo / Health / Armor panel (original digfont.pcx). How can I achieve such a thing?

Q: How can I switch and fade between two cameras?

Q: I have a game over screen that currently fades in and out until the user presses a key. I was wondering if it was possible to dynamically scale the bmap so that it gave the impression of it going from small to big and back again.

Q: Has somebody done any working example playing an avi file on a mdl entity?

Q: How can I make cursor visible on a panel and allow user to enter string in it?

Q: I would like a code to attach to all decorative entities (plants, trees), so that I can place them in Wed and the code will have them move down vertically so that they are on the terrain

Q: How can I make a light move throughout a level? I want the light to follow a certain path.

Q: I want the player to be able to load and save his position during the game. It's a short game, so a simple quick save / quick load would be enough.

|| AUM 34 ||

Q: Could you please show me how to use a first person view camera with your Sword Combat code in Aum12?

Q: I would like to have a looping sound attached to one of the robot-scripts. How can this be done?

Q: How could I implement a panel that will fade in and out depending on the player's pan angle? The panel would simulate a fullscreen flare effect.

Q: I was able to associate the problem I'm having with a .sav file that is created when I run my project. When I delete it, everything works ok. Is there anything I can do to turn this thing off?

Q: Is there anything that would cut off the display of a text object? I mean out of nowhere, it justs stops displaying the string even though there is plenty of room left to display it?

Q: How can you create a panel that only appears under certain conditions? For example a special panel coming up when you reach full health.

Q: I was wondering if there was any way to have my character smoothly go from the final frames of the walk cycle into the first frames of the standing cycle.

Q: Any tips on how to make my game panels have the same size on all resolutions?

Q: I'm wondering what I would do to change the camera from the path it's on to the normal 1st person view.

|| AUM 33 ||

Q: I'm using the stationary-gun code from Aum30. How do I control the weapon with the mouse (not with the arrow keys)?

Q: How could I edit your Perfect AI code? I want the player to come as close to an enemy as he wants; as long as he is hidden in the shadows, they won't see him.

Q: I use your minimap from Aum27, but I'd like it to rotate when the player changes its pan angle. Can you help?

Q: I've just started the code for my player. By default I want to have it playing a "stand" animation; when you press a specific key, I'd like it to play another animation, but only once through the cycle of frames.

Q: I would like to display something like a one way portal that allows the player to teleport to another part of the level. Is it possible?

Q: Could you show me a simple event_trigger example?

Q: Is there any script that corrects position of the pistol if you change camera to 3rd person? The pistol used in A5's templates has a weird position...

Q: I was wondering how you can get your guy to start with a weapon...

Q: I want to output to a text file and am looking for a tabspace character; \t or 'tabspace' do not work, although line feed (\n) works! Help me!

|| AUM 32 ||

Q: How can I pass a parameter to the A6 executable?

Q: I use the splitscreen shooter from Aum30 but the players don't have gravity. Can you help?

Q: I use your timer.wdl from Aum11. How should I modify the code if I want to be able to disable the bomb by clicking it again?

Q: I'd like to have a bomb that starts ticking as soon as the level is loaded and explodes after a specified number of seconds. Can you help me?

Q: How can I add an action to a map entity if I want to be able to change its angles using the four arrow keys?

Q: I'd like to be able to display a long text letter by letter, not all the text at once. Is this possible?

Q: How can I get the names of the entities, as they appear in Wed, at runtime?

Q: How can I have a different crosshair for each weapon please?

Q: In the game World War III you can change the graphics in the options menu and it will tell you after 10 seconds the performance that game would play in. How would I do something like this?

|| AUM 31 ||

Q: I read Aum 26 and really enjoyed the force field code, but I can't figure out how to move the particles up and down, just like the lift in the office level.

Q: One of the codes that I like most is John Wayne from Aum 9. How can I make the weapons bob?

Q: Trying to set up a simple fire effect for torches is beyond my comprehension. Can you help?

Q: Can I have a simple health pack code, please?

Q: In your Shoot 3rd project (Aum14), after enemy's death, the player and the bullet can move through the corpse easily. I want to do the same thing in my project, but it isn't working, even after setting "passable" for my enemies in Wed! What I am doing wrong?

Q: My game uses several wad files. I'd like to have a single wad file that contains all the textures used in my game; if it possible to do that without extracting the textures manually?

Q: I have built two sky spheres for my level. I'd like to be able to control their rotation speed and transparency under "Properties" in Wed.

Q: I can't seem to get "exec" to work; can you show me an example?

Q: I like the sword combat code in AUM12 but I'm having a hard time making it first person. I've altered the camera so that it rests inside the player but when you attack the model lunges forward and you can see it.

Q: I have an animated sprite of an explosion, but I need it to cycle thru the animations slower... how do i do this?

|| AUM 30 ||

Q: I made a terrain in med, but my model will only move about 1/2 way across it and either stop or act like it is against a wall or something.

Q: How do I make good textures without borders?

Q: I know that you can change the values of color depth and the video resolution using " video_switch ", but how can I restore the initials values of the system?

Q: How can I create a level block that has a specified size in quants, for example 20 x 30 x 40?

Q: Could you please give me a draw_textmode example?

Q: I have a skysphere model that follows the player around as he walks. Since the sphere is smaller than the level, the player can't see objects that are farther away than the edge of the skysphere model. Will this allow the computer to run faster, or is everything outside of the skysphere still rendered?

Q: Is it possible to have one model react to fog #1 and another model react to fog#2?

Q: How do you make the player move to the next level when he has accomplished all the mission objectives?

Q: How can I activate something with several triggers? Let's say I want to open a door and the first button needs to be off, the second button on, and the third button off to open the door.

|| AUM 29 ||

Q: I'm using the sword combat wdl in Aum12 and I need help adding gravity to the player and enemy. Please help!

Q: How can I set the strength of the fog in my levels? I use camera.fog = 1..100 but I get the same effect.

Q: Can someone please explain how to make a movement similar to Counterstrike. As in normal walking is running and shift halves the speed. I'm using the templates.

Q: I'm trying to program a block where you step on it and a door opens, but I don't want to handcode each door, so for each block I just want it to point to a door so I can open it and give it a generic function. Is this possible?

Q: I have a gun and I can walk. If I fire a bullet I walk very slowly. Is this normal?

Q: How can I play AVIs on a sprite?

Q: Can anyone please tell me how to replace the sprite used by the rocket launcher with particles?

Q: Is there a way to change patrol_path so that it uses a 3D path?

Q: I've seen people do some really incredible terrain with lod and grass etc. Just wondering if someone has the patience to share a clue with me.

Cheers
Posted By: Serlink

AUM 28 and 27 - 11/15/06 20:49

||AUM 28||
Q: How do you merge models in MED?

Q: How can I avoid being detected by the enemies if the player has morphed to another model?

Q: I use hit_smoke and hit_sparks for one of my weapons to make it look like a cloud of dust if you shoot the ground; my problem is it also does it if I shoot
a human model...is there an easy way to stop this?

Q: I just upgraded from demo to Extra... all the actors now have a white square at their feet where they touch the ground. Any ideas?

Q: How many events can an action have?

Q: I have created a 2D / 3D side scroller game and I want the camera to track a point X distance in front of the player.

Q: How do I use handle and ptr_for_handle?

Q: When I start the level, my warlocks turns around and walk back against the wall. How can I make them just stand? I use the premade action actor_walk_fight.

Q: How do I get a health bar to be displayed above an enemy's head?

||AUM 27||
Q: Can I create an entity, assign it an action and when my player touches it the engine will play an avi file with sound?

Q: I use your dart game from Aum23. How can I prevent multiple darts from being fired when the player clicks the mouse quickly several times?

Q: How can you display a bar in the top left corner which shows how much armor you have left (like a health bar)?

Q: How can I keep only the 1st person view and not change views when the player presses F7?

Q: How can I place a panel on the screen which changes its bmp automatically for the three main resolutions (640, 800, and 1024 pixels)?

Q: I would like to be able to reload my weapons when I press the "R" key. How can I do that?

Q: I am making a game that needs to play a sound when the player collides with one of the level blocks, but the sound keeps playing while you are colliding
with the block. How would you change it so that the sound only plays once when you hit the wall?

Q: I have no idea how to do this thing about defining the width and height of my font. Can anybody help?

Q: I am working with a lot of panels on the screen, and I need to be able to move them around the screen. Is there a way that i can find out which panel was clicked? Kinda get the panels name...
A: The next engine update (A6.1) will include the panel pointer. Read more about it and see a code sample in "Hot features".
Posted By: PHeMoX

Re: AUM 28 and 27 - 11/16/06 13:55

|| AUM 26 ||

Q: I'm making a model of a helicopter, but I want the player to be able to go inside it (similar to delta force). I have found out that the bounding box prohibits this; I'm sure there's a way around it anyone know?

Q: When I run my map all I get is nothing but a black screen with "A5" written in the far top right corner and nothing shows up, even after about fifteen minutes.

Q: I use your Resident Evil camera from Aum4 in my game and everything works swell until I move to the 2nd floor of the building. If my player gets closer to one of the ground floor cameras, it will switch to it (even though I am still on the 2nd floor above the camera). How can I fix that?

Q: Some models (quake2 mdl files) don't run properly in 3DGS; when I assign them the function "player_walk" they don't show walking animation when I walk with them. The models include walking animations.

Q: I would like to have an enemy generator; when I kill an enemy, another one should replace it and so on. Is it possible?

Q: If you want mipmaps on your model, do the skin measurements have to be a power of 2 and / or be square?

Q: How can I change the keys to jump in player_walk_fight?

Q: I get an error 041 - lightmap space overrun, but I don't see this anywhere in the manual. What does this mean?

Q: I have a var defined this way: var force[3]; let say I execute this line force = 4; will the content of force be 4, 4, 4 or 4, 0, 0?

Q: I would like to know if anyone has an example for custom acknex.wdf files.

|| AUM 25 ||

Q: I need a simple action that does the following thing: when the "W" key is pushed, the entity should cycle through its "wave" movement once.

Q: I have an animated texture on a block and it is really slow.... does anybody have any idea how to speed it up some?

Q: Can you tell me what is the function and in what file is the function that is activated by right click?

Q: I have added an entity to my level and it is named lampe_mdl_020. How can I get the values of its skills using C-script?

Q: Once you set an entity as something, can you clear it, so that character no longer equals you?

Q: Is there a way to have a sound follow an entity around as it moves?

Q: How can I create vars for entitys, like my._stupidhat?

Q: When I use the inkey command to accept user input, how can I position it?

Q: I am using ent_move for my player but anything that is set to passable will act just like a solid. What can I do?

Q: I want to make a little triangle above the enemy so you can see if he is mad or not.

|| AUM 24 ||

Q: How can I see the bullet marks created with hit_hole on all the walls, regardless of their distance to the player?

Q: How can I make that the crosshair visible at game start, without having to press the "K" key to show it?

Q: I was wondering if I could change a model's mesh depending on the video resolution that was set in the menu. This would increase the frame rate on weaker PCs.

Q: How can I create a flickering light?

Q: How can I speed up or slow down player's walking speed?

Q: I would like to change the bitmap for a panel at runtime. Is it possible?

Q: How can I get unlimited ammo for one of my weapons?

Q: How do I make the player invulnerable for 20 seconds?

Q: How do I assign a name to a player in multiplayer mode?

|| AUM 23 ||

Q: Please give me an example for a particle effect that uses beam!

Q: I would like to have different sounds for every template gun - is this possible?

Q: How can I use the mouse wheel to scroll through the weapons?

Q: I'm still searching for the code where the smoke trail for the rocket launcher is defined. Can you help me?

Q: I would like to have a counter that starts as soon as the level loads and counts down from 120 seconds to 0. How can I do that?

Q: Does anyone know how can I control the sounds volume of a certain sound? I know about sound_vol, but it controls the volume of all the wav sounds.

Q: I can open a file and write the data in it, but the new data always overwrites the old data. How can I fix that?

Q: I would like to create a camera effect; the camera should rotate around the player when I press a key. The center of the circle is the player and the camera should move around it, always facing the player.

Q: I have created an attack animation for my character; I want to play the entire animation when I press the left mouse button.

|| AUM 22 ||

Q: I can't make the emit_fish function emit in the users view direction. We want it to shoot like a gun, but it will only go in a straight line.

Q: I'm using the blades from Aum in my level. How can I make them come out of the floor? I want to have them active all the time..up and down.

Q: I like the tank code in Aum21 and I want to improve the AI for the enemy tanks. How can I compute the tilt angle for their turrets if I know the distance to the player?

Q: How can I make entity1 to look at entity2?

Q: I need some code for a fighting game. The camera should look to a point between the player and the enemy.

Q: I would like to load several levels using different strings that are set at runtime. Is this possible?

Q: How can I backup my flags and skills, before I do a level change?

Q: Does the file packer pack everything into one file, or can you set it up to create multiple files?

Q: Why and how should I use trigger_range and event_trigger?

|| AUM 21 ||

Q: Did anybody have problems with sky domes? I can see them in the list of the models in Wed but when I place them in the level they don't seem to appear.

Q: I have some hanging lights in my level that I want to look red and emit red light as well. How can I achieve realistic lighting on mdls?

Q: How do I make it so when I fall inside a hole I go to the next level?

Q: Is it possible to press a button to skip a splash screen?

Q: The sword combat script in Aum12 uses vec_for_vertex to get the vertex for player's sword. I want to use vec_for_vertex for the enemy sword as well. How does vec_for_vertex know whose vertex is it referring to: player or enemy?

Q: I have created a level with some warlocks. When I change their health and start the level, they turn around and walk back against the wall. I use the action actor_walk_fight.

Q: Is there any way to mix map entities and sprites in order to create a prefab?

Q: Is there a way to replace the skill numbers in WED with alpha - numerical text?

Q: How can I change the frames for an entity using the keys "+" and "-"?

|| AUM 20 ||

Q: I need some code that will play a specific animation when certain events occur.

Q: Why do you put this line in some of your functions?

Q: Can someone tell me how can I use Q2 models in A5? When I try to use them they animate the whole sequence.

Q: I would like to link 3 models under one action, to make a vehicle kinda like those in HALO.

Q: How do I create a switch that changes the color of a light source?

Q: Are F2 and F3 hardcoded to quicksave and quickload? I would like to modify them...

Q: I've been working on an arena style shooter similar to UT but I can't get the weapons to respawn!

Q: I have scaled my player down to 25%, trying to get a big world look and feel. Now I want to move the camera upwards - how can I do that?

Q: Is there any script to open a door with a mouse click instead of spacebar?

Q: Does anyone know a way to disable the z axis movement in Steroidz (Aum10)?

|| AUM 19 ||

Q: How can I make my player to loose energy when it comes close to another entity?

Q: When I try to build my level I get this error message: "Block outside level boundaries". What can I do?

Q: I want to open a dll in main and then close it before the app exits. When I hit esc the app just closes, how can I catch all close messages to make sure I close the dll?

Q: I know it is easy, I know it is in the manual, but can someone help me with the code to put a panel on the screen?

Q: When I save my model it's like it has a save snap that moves some vertices to the closest snap measurement.

Q: How would one scale a 250x250 panel, which only contains a bitmap of the same size, 3 times its normal size at runtime?

Q: I have a sword and when the player reaches a certain distance near the sword he can pick it up by pressing the spacebar. Is this possible?

Q: I use the Sword Combat code in Aum12 for my game. Is it possible to jump forward when I press space? If I press the spacebar the player should jump a distance.

Q: I create my terrain as a combination of level geometry and heightmaps. I want to limit the vertical climbing abilities of game characters in the heightmap area of my maps by making an invisible ceiling but leaving the skysphere visible. Is this possible?

Q: How would I use vec_to_mesh or vec_for_mesh to emit particles from say, three different vertices on a sword model?

|| AUM 18 ||

Q: When the player clicks a certain door, instead of opening it he will pass to the next level. How do i do that?

Q: I would like to see a panel with the weapons I've got so far when I press Ctrl. Can I do that?

Q: I have a train model and tracks in mdl; does any one know how to set it to follow the track?

Q: Is there a way to place an object in Wed and have the camera follow the player from that specific point?

Q: I am getting a syntax error when I try to do enemy1[0].y = 0; but it works ok when I remove the array: enemy1.y = 0. Why can't I use an entity property with an array?

Q: How do you use the push value if you want the player to move through an entity but not another entity?

Q: When a gun model emits a bullet model, does A5 automatically angle the emitting object's front position according to the main model?

Q: Is there a way to manipulate the robot2 action so that the distance of the shots isn't very far as if to use a sword?

Q: I want to make a (player) health bar that gets bigger with 5% with every new level.

|| AUM 17 ||

Q: How can I add an engine sound to the car code in Aum10?

Q: How do I create a panel that says: "press any key to continue" for every level that is loaded?

Q: How do I make my player disappear when it enters a vehicle and reappear when it gets out of the vehicle?

Q: I use the car code in Aum10 and I'd like to know how to make my player face the same direction as the car after entering it; now the car receives my player's pan value which doesn't look right.

Q: How do I do, that when the player picks up a gun, it actually holds the gun in the third person view?

Q: I would like to use the keys WSAD for movement; is it possible if I am using the templates?

Q: How can I increase or reduce player's health or armor smoothly instead of taking one big chunk of it?

Q: How do I do that when the player clicks "use" on a certain object, it moves to the next level, and restores health and armor?

Q: I'm trying to do a car racing game; what do I need to call the left, right, etc animation frames when I press the corresponding keys?

|| AUM 16 ||

Q: How can I create an action that will give the player some points and when it has over 100 points the player will be able to open a door?

Q: How can I use your cash script in Aum9 to buy a gun?

Q: How can I put in video clip at the beginning of the game and into the loading of the second level?

Q: Help! My player can't climb up the stairs!

Q: Is it possible to change the key_force to be different keys in the movement code?

Q: When my model turns I want it to turn back with the same animation but reversed when I release the button.

Q: Whenever I pick up my weapons, they are placed in a wrong position. What can I do?

Q: How can I rotate a panel?

Q: By default the Game Studio fires a white and grey trail from the enemy weapon to the player. How do you change what the enemey fire looks like?

|| AUM 15 ||

Q: How can I add another animation to your sword combat code in Aum12?

Q: How would I get a sound to initiate when an object passes within a certain radius of a model, and a different event to occur when it hits the model?

Q: Is there a way of making an invisible block which allows the player to pass through but not the enemy actors. The player still needs to be able to shoot through it ?

Q: How can i create flying enemies?

Q: I would like to click the mouse and have the mouse click go through one panel, but be intercepted by the panel below; the mouse is holding an object which is in fact a panel.

Q: I've been working on a little clock script and got all the parts to work pretty well; how can I get the names of weekdays or months to show up?

Q: Is it possible to shoot from two different vertices at the same time?

Q: Is there a script to make the background music throughout the game but I don't want midi, I prefer .wav

Q: I use the campath script in Aum6 for the intro in my game and I need to load a new level when the camera reaches a certain area. How can I do that?

Q: How can I use your random forest script in Aum12 if the level isn't centered in the origin?

|| AUM 14 ||

Q: Ok I got the blade code from AUM. Yeah it works, but it doesn't hurt the enemies. Any help would be welcome.

Q: I need code that will allow me to click and move a panel on the screen as long as I keep pressed the left mouse button.

Q: If you have a text string too big for your panel, will the engine automatically scroll it for you?

Q: How can I create a weapon that fires another model made by me?

Q: I'm having serious trouble with the level_load command. I have created a level that gives information to the player. When the function that displays this information is finished, it loads another level. The level loads, but the origional function (which is called from main) will not reinitiate.

Q: I'm trying to replicate a church in Italy. I want to have very clear looking images. I'm getting an error that says the sprite file size is too big for my video card. How can I insert these paintings and windows efficiently?

Q: Is it possible to have sprites in a compiled map entity? When I compile a map entity with a sprite in it, the sprite just doesn't show up after loading the wmb file.

Q: How can I use the vbar command?

Q: I start a level, add my terrain to it, save my work and build. I get an error: ca'nt read interim file xxx.$$p. What's happening?

Q: Is it possible to use an animated gif, or any other animated picture file, as a splashmap?

|| AUM 13 ||

Q: I have downloaded some plant models but when I put them in a level they have a strange black frame around their leaves. What should I do?

Q: How can I deform things and persons?

Q: How do you get a pcx file to play without morphing an entity into the pcx?

Q: I am searching for a script which blurs the textures when you come closer to them. When you walk close to a building the wall will blur so you don't see the texture as ugly blocks.

Q: When I test my level and I move upwards, it starts to fly. How do I prevent this?

Q: How go I get each entity to follow its own defined path?

Q: I want a script that will rotate a camera around the origin (0,0,0), 45 degrees per click. Could someone help me?

Q: Anyone knows how to load in a bitmap during runtime?

Q: I attach weapons to my actors; how can I remove the weapons if the actors die?

Q: How can I have a progressive zoom using your code in Aum11?

|| AUM 12 ||

Q: What is the difference between "smoth" shadows and regular shadows?

Q: How can I make it so that when I touch a cd it will take me to the new level?

Q: I have the standard version of 3D Gamestudio so I cant import terrain files. I could use models; is there a way to make my terrain model not passable, so my player can walk on it?

Q: How do you make actors that have skin animations (a character blinks his eyes or opens his mouth)?

Q: Can someone give me a script that moves an entity using the arrow keys, but it does not move the camera anywhere?

Q: I need the cursor to change when I scroll over an npc. Can you help?

Q: I use the "pathcamera" code in Aum6. I need to stop the camera when it reaches the last point in the path.How do I do that?

Q: I'd like to keep the bullet hole marks on the walls - is it possible?

Q: I have a few models and I need them to walk using the walk frames; I also have a character that has a "stand still" animation. Do you have some code?

Q: How do you check if the player has entered a certain street?

|| AUM 11 ||

Q: I try to paste your code from Aum but I get errors about missing vars, etc; what should I do?

Q: I'd like to know how much video memory eats a texture of a certain size:

Q: I need some code that will show a panel above my npc when I click on it. Can you help?

Q: I like your Resident - Evil camera code in Aum4, but I was wondering if you could tell me how I should do if I want the cam to be frozen, and not follow the player.

Q: I have played around with the menu system in Aum8 and it works fine. However, when I include my level named "Level1.wmb" I get player_move - action not found, etc. I'm not sure how you should tie all the elements together for my level to run when you click on "New Game".

Q: How can I make an enemy take more shots to kill than another?

Q: I have created a function which counts the seconds the game is running at the end of the main function. The time already starts running when the splashscreen is displayed. How can I avoid this?

Q: What exactly does animdist do?

Q: What is wdfc.exe and what can u do with it?

Q: I bought the "100 3D Actionmodel-pack" from Sybex, but some models are too big for my project. I have tried to resize them in Med, but when they started their action they suddenly changed back into their "normal" height. How can I make the models smaller?

|| AUM 10 ||

Q: I'm working on a multiplayer game which is working fine starting through WED if I use -sv, -cl etc. How do you go about coding the startup files?

Q: I like your footprint code in Aum9; how can I change it to create footprints only when the player is outdoors?

Q: How can I make that my enemy hear sounds and attack me?

Q: How can you define a variable for a certain entity and then change its properties?

Q: I have started to play a wave file by pressing the space button in my action. The wave file plays once from beginning to end. Can I stop it somehow before it ends?

Q: I am trying to create a speedo for my game. I would like to use 2 panels; the first is the clock, and the second is the needle that indicates the speed. I need to make the needle rotate or 'roll'. Is this possible with a panel?

Q: Can you change a Map entities texture by script?

Q: I was wondering if there is a way, instead of deleting the particle when the particle life expires, but to delete the particle when it passes a certain position or becomes X far away from where it started?

Q: I'm using Geometricks' attach_entity function. I did a generic attach statement, but my models were scaled, so the guns did not line up correctly. Can I scale the guns via script to match a model scaled in WED?

Q: Is there a way for a (template) enemy to slowly fade from existence after a certain time and then remove itself?

|| AUM 9 ||

Q: I need some code for a vertical mirror - can you help?

Q: You make the second level in a game and use the same script as before. When you click run, does it always have to go at the beginning of the game?

Q: In my game the camera passes through some of the walls from time to time and I want these walls to disappear when this happens. What should I do?

Q: I have windows Xp and I tried to run the office level. I did not modify it. I just opened and tried to run it. This is what I got: Engine malfunction w/30/ <OFFICE.WMB>can't open file

Q: I started learning WDL and I made a pong-like game with the help of Rémi's tutorial. I want to make a block that sinks 10 units in the ground or disappears when it is hit by the ball.

Q: I cannot get that 'camera follows path' code snippet from AUM6 to work. Any step by step guide would be much appreciated.

Q: Is there a way to make the m16 bullets travel farther?

Q: I know that you have to press "k" for the crosshair but in which script is it defined so I can change it?

Q: When I pick up a weapon it isn't placed ok. How do I change its position in first person perspective?

Q: Is it possible to have make a multiplayer game where different players are in different levels (maps)?

|| AUM 8 ||

Q: I'd really like to know the best method of setting up my gun so that the bullet has a smoke trail but not the standard square blocky pixels.

Q: I have a snipe action in the main wdl of my game and i was wondering how to go about making it so you could only snipe if you have a gun number 5 or higher.

Q: When I press the right mouse button I move forward. How can I get rid of this?

Q: I want to add infrared vision to my game. How can I do this?

Q: Please help me animate an entity this way: when I press "J" the player would jump and play the jumping animation frames.

Q: When I do a level change, the player does not bring his gun with him. How do i solve this?

Q: Is it possible to have a enemy model blow up different then me? For example i blow up with flames and the enemy blows up with smoke.

Q: How can i create a traffic light that has green, yellow and red lights?

Q: Which is a better format to save textures and panel bitmaps as - BMP or PCX? Is there any display speed difference at all?

Q: I am pretty new at panels; what is a window? I have read the manual over and over and i still do not understand what a window is.

|| AUM 7 ||

Q: How can I add a 1st person camera to your cameras in Aum4?

Q: I've declared a bmap and am showing it through a panel. The bmap is true color but whenever I display it the image looks like it has only 16 colors! How do I fix this problem?

Q: How can I adjust the palette for my models? I have converted some MD2 models to MDL but they look weird when they're in the game.

Q: Is there a way I could play a piano in my game? I could use the numbers 1 - 0 to play it.

Q: I'm a newbie and I don't know how to use weapons. Please help me!

Q: I tried to develop some code that gives the choice of choosing the type of music in the game (for example heavymetal / techno) I but couldn't do it. Does anyone know how to do this?

Q: How many entity monsters (about quake's grunt size) can a5 handle at the same time; 5 -6 or more?

Q: How can I use decals?

Q: I am using Stratego as a base for my strategy game but I can't add gravity to my units. Can you help?


Q: I want my digits (in a panel) to go to the right like this:

0
10
100

instead of this:

..0
.10
100

Is this possible?

Q: Can I have an entity that says something like "Don't touch the guard dude!" when I come close to it?

|| AUM 6 ||

Q: I have two arch doors on a gatehouse and I want them to open both at the same time going inside in. How can I do that?

Q: I was making a roallercoaster thing but when I tried to get in to that special designed box I made where I should sit, I could not get in and enjoy the ride.

Q: I'm making a tv in my level and when you press space an invisible sprite apears and plays an animation. Please help me.

Q: How can i make the enemies run instead of walking?

Q: I want to have a reload action in my game. The player has to press a key (like "r" on the keyboard), then the weapon should be reloaded.

Q: I need to know how to program an image that moves on a panel. Can you help?

Q: In the AUM magazines, why do you put "* time" after all of your calculations? What does this do?

Q: I have been racking my brain trying to think of a way of making buildings and people cost gold or money that people or peseants gain with deposits. Could you help me with a script that would accomplish that?

Q: I was experimenting with the code for thief-like sneaking ability for characters. Do you have an ALARM action? What is the best way to write the function?

Q: I am trying to figure out a way to make a mouse pointer that changes according to its position in space. If it is above the player, the pointer should be a small hand pointing up. Northwest, a hand pointing northwest and so on.

|| AUM 5 ||

Q: I am creating a level with a huge terrain that has a lot of polygons. I would like to know how to deactivate the terrain who isn't visible to increase the fps.

Q: Can someone please tell me how to make a hbar that goes down when you get hit, but can also regenerate when you hit a button?

Q: At runtime with no player_move, I press the zero key so I can move the camera around. When I get to certain points all my entities disappear - what's happening?.

Q: I would like to know how to make a light move, change its intensity (range) and color during the game.

Q: It is possible to have multiple objects for the player? Eg. a body, legs and arms, separate objects but part of the same group so that they are controlled by the player-move script?

Q: I want to know how can I make an entity patrol a path and how do I change its patrolling speed ?

Q: How is it possible to turn a bmap on a panel in the direction of player.pan? I want to make a compass-rose.

Q: I have changed some of the template code so that it kills the player if he stays too much under the water but I want him to loose health only when the camera is under the water too. What should I do?

Q: I have an animated torch model - how do I create the code for it?

Q: Is it possible to obtain different water effects? How?

Q: I would need some code that will make the player loose health when he falls into lava.


|| AUM 4 ||

Q: I was wondering how can I create a fixed camera? Just like some shops in Resident Evil.

Q: I was just about ready to animate my model for a gun in first person view and was wondering if frames per second will matter a lot? I was probably going to do maybe around 20 to 30, is this too high or does it even matter?

Q: I need some with the scripts. I want to play a wav file when something happens or just play it anywhere in the level.

Q: How can I run a certain function when I pick up a weapon?

Q: I want to build a level where you can drive a car. I have no clue how to do this.

Q: When I put some textures on to objects (in this case marb_41) it looks fine while editing in WED, but when I BUILD it the colours go wierd... I fix this problem by making it True Colour and then save it but when I exit the WED then go back into it I have to do the same thing again.

Q: If I compile my level with preview off (ie final build) on a seperate P.C. just for compiling, when it has eventually finished which files do I copy across to my other P.C to get the 'final' build version here?

Q: How can I create a panel that says "Loading..." before loading the level?

Q: Is there any way to change the actionoff for a button so that it is triggered with a right click instead?

Q: I need some code for a camera following a path (my view in fact). I tried with patrol_path, but it doesn't work on my entity, only with another entity

Q: I'm wondering how to convert a 3D vector position (from the camera view) into a 2D panel position. Any ideas?

|| AUM 3 ||

Q: Every time I run my level it comes up with 'bad texture animation' '+01elpan' I know '+01elpan' is a texture and I know what it looks like, I just can't find it anywhere. Is there any way to find that texture on my level or to correct the error?

Q: “How can I emit particles from the surface in the direction of surface normal? I know I can get the position from ent_vertex but how can I get a list of all vertices and their normals?”

Q: I was wondering if there was a way to "nullify" the gravity in the game during a certain function.

Q: I'm currently putting together a space simulation. I need a moving starfield that moves along with the player's spacecraft, to show speed and movement.

Q: How do you get a particle to give off light? Can I call it up during the emit function? Or does it need to be a separate action?

Q: Is it possible to convert a .pk3 file to an .mdl file? If so how?

Q: I want to make a 3rd person game and I want my main character to be rather detailed. I decided to try to use sprites instead of a high poly count model. I made a test script with a bitmap and tested it. The problem is that the edges around the character do not come out transparent and any dark areas show holes. How do I get rid of this?

Q: The WDL function random(x) returns a random fractional number between 0 and x. However, from one run to the next, the sequence is always the same. Is there some way to seed the random number generator?”

Q: I'm wondering how to convert a 3D vector position (from the camera view) into a 2D panel position. Any ideas?

Q: I am trying to make a 3d adventure game and my character has a gun that shoots bubbles. How can I make him shoot bubbles?


|| AUM 2 ||

Q: How can I create a script to allow me to click an object in 3D space to select it?

Q: I like the laser code in AUM1, but when I use it in outdoor areas, the frame rate decreases a lot. What should I do?

Q: How can I create a script to pull up a panel (like a browser) to display information such as text, images, animations, etc.

Q: Is there a way to change the control or movement so that the up key is forward from the view? Where left and right were not turning or strafing, the player model faced the direction pressed and went and the camera followed accordingly. This is in a 3rd person view.

Q: I have given an action to an enemy (i.e player_attack); there is a patrol function in the templates, but I want my actor to patrol until it sees the enemy. Now if he sees the player then he should attack.

Q: is it possible to play a wav file as the music instead of midi?

Q: How can I decrease player's health during time. I'd like to decrease the health value when time goes on.

Q: I am working on an adventure game, just using the elevator, door and key actions. It really disturbs me that I can only define 4 keys. Maybe some of the WDL-Gurus can help me.

Q: Has anyone scripted a mouse sensitivity routine?

Q: I just upgraded to A5 and now the particles that used to look really cool with the MY_FLARE flag set to "ON", now look really lame. Does anyone know why this might be?

Q: How do I modify the range for the weapons?

Q: I would like to record all the actors movements (triggered by some start/stop keys) into a file. Any suggestions? What about performance, when continuously (lets say every 100 ms) writing x/y/z/rotation coordinates into a file?

Q: How do I use muzzle_vert?

|| AUM 1 ||

Q: I want to use a multi frame gun in my game like in Deus Ex or Soldier of Fortune but I don`t know how to do it. In default weapon.wdl I can only use a one frame gun.

Q: My problem is that after the game starts the sound resets to zero so that the MIDI-file is not usable.

Q: I need a wdl code for an enemy that dies and leaves a health pick-up behind. Like the enemy goes through his death and as he disappears a health pick-up generates were the enemy was laying.

Q: When I am following the tutorial and select a cylinder I just added, if I am in rotate mode, it rotates when the object is selected. When I am in scale mode, it rotates too! Is this a bug?

Q: Is it possible to make it so that if the player touches something he gets hurt and is there a way to effect how much you get hurt?

Q: Does anyone know of a good way to make rain / snow in levels, so that it will only be raining outside, so if you go in a building it isn't hitting you but you can see it thru a window or something?

Q: When I place my model into the WED it will sink into the floor. I place the origin in the mid-section of the model as shown in the sample mdl. When I remove my script from the model it will not sink I wonder what may be wrong.

Q: If I have building with several rooms, does overlapping the walls with one another help or shall I try to keep them exactly on the same grid line?

Q: How do I increase the walking and running speed of my player as in Q2 or Unreal? I'm using the template scripts for my player action.

Cheers
Posted By: George

Re: AUM 28 and 27 - 11/16/06 19:44

Thank you; I appreciate your effort. I'm glad to see that we act as a "real" community.
Posted By: PHeMoX

Re: AUM 28 and 27 - 11/17/06 01:37

You're welcome, and I'm sure it was worth it. I tend to look through these questions a lot myself too, it's quite amazing actually how much solutions are already given to us.

Cheers
Posted By: JazzDude

Re: AUM 28 and 27 - 06/26/07 02:59

I have brought it up thru AUM 64 and compiled the list in order. It's now posted for referencing or downloading at

http://www.atticgamez.com/GS_Forum_Questions.htm
Posted By: yorisimo

AUM 61 to 65 - 07/11/07 22:49

Might as well put these here, even though they're compiled already (except for 65) How about putting this on the WIKI so it can always be an up to date compiled list?


=====
AUM 65
=====
Q: I want to modify the surveillance camera code from aum10. When the player stands in front of a monitor and presses the action key, the code should switch between the cameras.
Q: How can I make an object orbit around a specified xyz point from my level?
Q: How can I attach particles to the mouse pointer?
Q: I want to capture a movie from my game and play it on my PSP game console. How do I tell Acknex to run at the needed resolution?
Q: I want to make the camera follow a path in a loop. How can I do that?
Q: In a 3rd person environment where you want the model to display what they are carrying, how do you go about giving a model different things? Weapons, armor, hair, clothes, etc. Better still, what's the best way to manage them all?
Q: My educational game uses 227 panels, but I don't use them all at the same time. How could I save some video memory? Right now my game needs about 160 MB.
Q: Is there a possibility to change the mouse pointer bitmap if it is hovering over a certain panel?
Q: I was wondering if anyone could tell me how to put a looping wav file in a splash screen script. I want it to play over and over until the space bar is pressed to start the game.
Q: I want to display a question on the screen, accept the answer given by the user and store it.


=====
AUM 64
=====
Q: I want a character to face another one when it enters its c_scan cone of vision.
Q: How can I create a panel-based background that repeats itself across the entire width of the screen?
Q: I have tried to come up with a light source that changes its power gradually, but setting different lightrange values didn't work fine. Is there any other method I can try?
Q: I would like to have a model animate using "walk" for 10 seconds, then "jump" for 10 seconds, "walk" again for 10 seconds, and so on. How do I do that?
Q: I'd like to be able to play a random soundtrack in my game.
Q: I have a turret gun attached to a car. The turret needs to move with the car but also target other objects when I move the mouse. How can I do that?
Q: I have a box and I want to be able to push it off of a ledge in a realistic way. Is it possible to do that?
Q: Is it possible to draw several lines from the current position of the mouse pointer to a certain point for as long as the left mouse button is kept pressed?
Q: When I try to change the level using level_load this malfunction appear "Can't save/load in same frame". Can someone help me with this?
Q: I need to be able to sort out which one of my enemies is the closest to the player.

=====
AUM 63
=====

Q: In one of your early AUMs you wrote a script for an eclipse. Could it be possible to update it for us?
Q: I was wondering how I could read a string from a file, process it and then output it to another file.
Q: Does anyone have a sample script showing the assignment of animation sequences to keystrokes?
Q: How can I get a slider to use absolute values such as 1, 2, 3, 4 instead of 1.1 1.2 ... etc?
Q: Is there a way to disable all the audio playing in an A6 game,if some other application window is in focus?
Q: How can I program two cameras within the game engine merged together, so that you can have one camera rendering through the game as a right eye and the other camera rendering as a left eye?
Q: How can I rotate (pan) an entity in a specified direction with a specified speed?
Q: Is there an easy way to have something happen when you push the left mouse button and something different when you release it?
Q: I'd like to click a button on the main menu and take the user to a sub-menu (here it would be a log-in screen).
Q: I have noticed that my high-speed flying arrows tend to pass through the target sometimes. How can I avoid this?

=====
AUM 62
=====

Q: Is it possible to have a spinning object that decreases the health of all the entities that approach it?
Q: How can I make an object "glow" while the mouse is placed over it, without clicking it?
Q: How can I play an explosion as a stereo sound?
Q: I want my gun model to display an animation when I press the left mouse button (fire). How can I do that?
Q: I have a model that only has the "stand" animation, but uses bones. How do I get it to loop just this animation?
Q: I would like to display several pictures in order, matching the value of a variable.
Q: Is there any way to save a string to an external .txt file? I need this for a question and answer / essay type of game.
Q: I need an action that makes the player die when he touches a model. How can I do that?
Q: I have a problem with my character; it moves quite fast. How can I slow it down and where can I customize the moving options? I use a 3rd person camera and PlBiped01 for my player.
Q: How can we create particles that flow over a certain area, just like a bridge?


=====
AUM 61
=====
Q: The lap counter for the car AI code from Aum35 doesn't work with the new A6.4 - can you help?
Q: I use your countdown timer from Aum23's faq. Would it be possible to change the code, allowing the timer to display minutes and seconds separated by a ":" sign?
Q: In workshop 34 from Aum 59, would it be possible to edit the code so that the bullet holes don't hit the skies?
Q: How can I calculate the size (in quants) of my terrain?
Q: What are the ways to quickly manufacture a non interactive background for a game?
Q: Why isn't 3DGS playing all the wav files from my game folder? They work fine with Media Player...
Q: I'd like my player to trigger a level change when it enters a certain area from the current level. How can I do that?
Q: How can I use animation blending? I try to use it for transition animations, for example from "wait" to "work"
Q: I am looking for a quick example of a shooting game like moorhuhn. It is a game where you are supposed to kill birds that
Q: I know that you can create view entities, but can you create view particles? Otherwise it's a trigonometric nightmare trying to get the particles to the same position as the view entity.
Posted By: elsewood

Re: AUM 28 and 27 - 08/19/07 16:06

@JazzDude: You put two times aum63 in the list...
Posted By: picoder

Re: AUM 77 - 66 - 09/04/08 06:23


=====
AUM 77
=====

Q: I want to display a string just like a typewriting machine does, so that each letter or character is displayed after a little break.

Q: I would need a lite-C camera that always shows the player from its side.

Q: When a player gets a high score, I'd like to be able to prompt him to type in a name and then write it to a file. So far, I haven't discovered any Lite-C mechanism for doing this.

Q: I know that the goto instruction doesn't work in lite-C. Can you show me a good example on how to replace goto in lite-C?

Q: I would like to have a looping sound fade in / out as a player gets closer / farther to it.

Q: I'm making a subway and I want the doors to move along with the subway. How can I do this?

Q: How do you create bullets for a gun? I know that you can ent_create them, but how do you make it so that they will always end up coming out of the gun?

Q: How do I make it so that when the bullet hits the target, the target dies or an effect triggers?

Q: I would need the code for a rabbit that can detect obstacles (walls) and can jump over them automatically.

Q: How can I detect (inside the enemy code) if the enemy is hit by player's bullets and not by the other enemies' bullets? I need this for my shooter game.



=====
AUM 76
=====

Q: How can I attach a "real", working headlight to one of my models?

Q: I would like to have a task strip below the screen that rises when the mouse is placed at the bottom of the screen and includes clickable pictures.

Q: I have a function that shows a panel and activates the cursor. If I trigger it with event_impact, the cursor freezes. If I call it with a keystroke, the cursor works. What is wrong with my code?

Code:
function barrel_event()
{
       if (event_type == EVENT_IMPACT)
       {
               snd_play(gong, 40, 0);
               show_challenge();
               ent_remove(me); // disappear when hit
       }
}


Q: I have an fps gun which animates using the left mouse button; however, if I release the mouse button, the animation will stop without completing the cycle. Can anyone help?

Q: My code uses the c_move instruction; however, the model penetrates the wall partially, just like in the picture below. What is wrong?

Q: How can I use the code snippets from Aum's faq? Do I save them as separate files, and then copy the files to my code folder? Or is there a step that I am missing?

Q: I can't get a flash sprite to animate at the gun muzzle. Can anyone help?

Q: I would like to be able to blow up a barrel with flames and smoke.

Q: I have a car and I would like to blow it up with smoke, flames and have it roll over on its side at the same time.

Q: I would like to have a flash (smashing like) appear in random places on my model. How do I do that?



=====
AUM 75
=====

Q: I want a camera that can zoom in and out, rotates around the player but always faces it. The left and right arrow key should do that; the up and down arrow should move above and below the player.

Q: How can I use baked textures?

Q: I would need some code which allows a player to ride upon a moving train on a path, but while the player is on the train he can move around also.

Q: I use the sys_trial code from Aum 74 for a demo. The code works correct, but I've got an ent_create instruction in a different file, which is included in the sys_trial file. The problem is that even after the demo expires, the ent_created model is still created. What is wrong?

Q: I'd like to have a machine gun that creates hit hole panels with random orientation on the walls. How can I do that?

Q: My script includes two gun entities. Setting their positions works fine, but I want to be able to change the gun model as well, depending on the value of a variable named currentGun. How can I do that?

Q: I am making my own version of Guitar Hero. I have already made a simple level and some note models. The level and the songs work, but I don't want to make a new level for each and every song, on each and every difficulty, on each and every instrument. Is it possible to make a file (like a text file, a script file or whatever) that contains the positions of the notes and how many neckboard pieces are needed, which can be opened by a script that loads the information and displays the notes and neckboard on the screen and also assigns the notes and the neckboard their actions?

Q: I want to create a different starfield effect; I want to have tiny white pixels. Creating a skycube produces blurred pixel dots; I want to have sharp white points. The stars cannot move while I move my ship, since they are very very far. So I need them to be created and just blink a little, following the player but without any trail.

Q: How do I make an object that when you walk up to it and press a key, it displays a message?

Q: I have a 3D map and little dots to show the enemy ships' positions. I am using screen entities for the cube map and the dots; is there any way to assign a function to the dots?



=====
AUM 74
=====

Q: Is there an opposite event for EVENT_SCAN? I want to display a text when I "see" an entity and let this text disappear when I don't see the entity anymore.

Q: I use particles for my waterfall; when I move away from my particle effect I can only see a few particles and this doesn't look natural. How can I fix that?

Q: I'd like a function that fades in a music track, plays it for 1 minute and then fades it out. Can you help?

Q: I'd be happy to make an aimlessly moving AI that changes direction at a random interval between 4 and 10 seconds.

Q: In my car simulation, I want to make a log file that shows what the driver does at a certain time. Can anyone help?

Q: I'm trying to add scripts that come with GameStudio to my project, but there are a few scripts which can not be opened, even though the files are already there. Did anyone else encounter this problem or knows a way to overcome it?

Q: Four entities share the same action. In a separate function I set one to be the active entity using a pointer; if I set its skill1 to any number, all the entities with the same action get the same value for skill1. Is this a bug or am I doing something wrong here? Have pointers changed under lite-C? Skill1 is being treated like a global variable here.

Q: I'm interested in reading out the sound volume for my music track. Anyone knows a variable or is it possible to get a handle with the volume to a sound or anything else?

Q: My game includes 5 important entities; I'd like to display their health values on top of their heads at all times. Can you help?

Q: Can I have an entity that is controlled using the arrow keys and acts like a magnet for some other entities?



=====
AUM 73
=====

Q: Is there an "official" semicolon counter for the "100 lines of code" contest?

Q: Do you have a snippet that allows me to control my model using the arrow keys (walk and attack)?

Q: I have made a simple educational game that runs at 800 x 600 pixels. When somebody stretches the window from its corners my button are not working anymore. Is there a way to lock my window?

Q: I need the code for a starfield that generates particles in the background. Can anyone help?

Q: I've got a box with a cylinder in front; it looks like a dial that can be rotated by pressing a key. I'd like to play a sound when the dial reaches a certain postion. Can you help?

Q: I recently noticed that the shadows in my level aren't as good looking as I remembered them. I say "remembered" because I'm starting to think that I imagined it since I never payed too much attention to the shadows.

Q: I have a bitmap that contains an animated sequence of heart beats. How can I play the sequence as a 2D animated sprite?

Q: How do I change (for collision detection purposes) the hull size of an entity to its "real" values?

Q: I have two entities but I'd like to switch the control from one to the other, using the same player action instead of creating several player actions. How can I do that?

Q: My player should turn towards a place (vector) on the map, start walking in that direction and stop when it has reached the proper spot. Can anyone help?



=====
AUM 72
=====

Q: How do I add movement to my player and put the camera behind it, so that when I press W,A,S,D the player will move and the camera will be kept always behind the player?

Q: How can I add pixel & vertex shaders to entities (the easiest way)?

Q: How can we create code that places bullet holes on surfaces?

Q: How can I program a character that changes its size every time when it is shot?

Q: I have encoded an animation to avi (Indeo 5.1) but when I play it in 3DGS it doesn't look good (bad image, sometimes bad frame rate). How can I play good quality videos using media_play?

Q: How can I destroy a little part of a wall using a bullet?

Q: How can I activate an "if" branch only if the model is, for example, "model.mdl"?

Q: How can we program a 3rd person camera that stays behind the player and rotates around the character if the player doesn't move for a while?

Q: How do you use FXA_Mirror? It doesn't work anymore! I am using A7 professional.

Q: My npc is supposed to rotate towards the player and say its line once, but only when it is looking directly at the player. How can I do that?



=====
AUM 71
=====

Q: Anyone got a snippet that makes a text appear when you touch something and makes it disappear when you move away?

Q: I would need a script that makes the camera follow the mouse pointer gently, but stops the camera when the pointer is close to the center of the screen.

Q: I would need a 3D arrow that points downwards, moving up and down, in order to show the player the following task.

Q: I want to play footstep sounds in time with my walking animation, I was wondering if it's possible to find out what frame is being played in the current animation and then play a sound.

Q: I want to place several sprites in the game but they have a background that I don't want to be visible. How can I tell the engine to ignore a certain color of a bitmap?

Q: I want the closest camera to be set and look at the player as soon as the player approaches it.

Q: I'm wondering if you can help me creating a crosshair that is controlled with the arrow keys, while the player can be moved using the WSAD keys.

Q: How can I create a particle glowing effect, surrounding a 3D model?

Q: Is there a simple way to display several tiny colored dots on top of a map? My best try is to use lots of 1x1 pixel panels.

Q: I have used WED to design the first level of my game. I build the level but when I run it none of the sprites are visible. What is wrong?



=====
AUM 70
=====

Q: I would like to create a 2D game that uses 4 different car sprites (for the 4 movement directions) and allows you to control the car using the arrow keys.

Q: I want to move my model using the WSAD keys; the script uses c_move as shown below. How fast (in quants) will the model move in the level? Is the speed dependent on the fps of the computer?
Code:
speed.x = 5 * (key_w - key_s);
...............................................
c_move (my, vector(speed.x, speed.y, speed.z), nullvector, GLIDE);


Q: I'd like to create a radar that scans around it and highlights all the entities that are within its range.

Q: Is there a way to decrease the texture quality? I'm having a small frame rate in my game, and I narrowed it down to the texture quality, so if I could decrease the texture quality, that would really help.

Q: I'm currently making an outside level in which I would like some water the player can enter. I have set the passable flag for my water entity but when I enter the water the player just walks on top of the water and does not enter through the surface. What am I doing wrong?

Q: How can I read and display a very big string from a file? Right now, any separator (comma, etc) will break the string so I'll only get to see a part of it.

Q: I would like to have my player pick up the diary pages by colliding with them, like walking up to them and they go into the inventory.

Q: I have a hard time setting the proper size of the entities in my level; is there a possibility to change their size at runtime?

Q: I am creating an adventure game and I would like to have a "tooltip", a small text that appears at the top of the screen and explains what an object is or does when that object is touched by the mouse pointer. How can I do that?

Q: I need a function that writes the date and time to a log file (appending them to the existing info) and then shuts down the engine.



=====
AUM 69
=====

Q: When I run my wmb level, it uses about 65 MB of ram, but when I run it using the script it needs about 255 MB! My code loads several entities and scales them using values from an xml file. Is there a problem with my code?

Q: I was wondering if it is possible to make a door open and stay open when the player comes near it and close when the player moves out of range.

Q: I'm trying to create a character selection snippet; the player should go through all the available characters by clicking a model. How can I do that?

Q: How can I have my enemies detect me from far away when they can see me and also detect me when I'm behind (but very close to) them?

Q: Do you have some code for a bird that would fly randomly in a big outdoor level?

Q: I can't assign an action in Wed from an included script. If I create actions in my main script, they appear in Wed; I have no errors and I can call the included actions in my main script, but I want to attach them to my entities using Wed. Does anyone have an idea?

Q: I am trying to make a ball toggle its 2 skins when it collides with the wall.

Q: I would like to know more about the inner works of the "wait" instruction. When the number is positive, what is the time that the function pauses? What can "wait(50)" be replaced with using "wait(-x)" ?

Q: I'd like to have a panel that is barely visible (only a small edge should be visible on the screen) but slides until it is displayed completely when the player moves the mouse pointer over it.

Q: I have a puzzle in my game in which the 1st person player can only get past a door if he has found a hidden key. How can I do that?



=====
AUM 68
=====

Q: How do I make my entities to react to bullets only and not to the actual player?

Q: I am trying to get collision events for entities. Can someone show me a small example?

Q: I'd like to have a camera that swings out a bit, just like a boat riding a small wave.

Q: I have a bmp file (grid.bmp) and I would like to show it just a few pixels above my terrain. How I do to it?

Q: What action do I need to create (using lite-C) to get a model to follow a predefined path?

Q: I need to close the level and after one second load another level. I have used game_exit but this doesn't work.

Q: My player must move from the far left of the screen to the right, facing the proper way of course. Any press of the left or right keys should rotate the player in the direction he is walking.

Q: How can I swap the bmap of two panels?

Q: I have a car code that works ok, but I'd like to attach it sprite-based lights that move and rotate together with the car. How can I do that?

Q: I'm trying to set up a small game with a ship that is controlled using only the space key (press to give the ship some gas, release the key to cut it). Can you give some advice?



=====
AUM 67
=====

Q: How can I create the code that displays a menu when the player has clicked a building?

Q: Is there a special way to divide numbers? If I try to divide 6 / 4 I get "1" as the result.

Q: Could you please give us a snippet that's as simple as possible and includes all the needed lite-C code for a standalone 1st person player / camera combination?

Q: I want to change the model when the player dies; this way, I could use an impressive death sequence.

Q: How do I get an entity to blink when I move the mouse over it (like fading in and out white)?

Q: I have a countdown timer and I would like to put a 3D bar on the screen and connect it to the timer. As the time decreases, the bar would become smaller and smaller. Is this possible?

Q: I want my boat to pan / rotate when turning but only move to that new angle after a slight delay, creating a sliding effect like you would see when a car attempts to turn too fast or on a slippery surface.

Q: I'm trying to get a cool waving effect for my leaves

Q: I'm trying to make a gun fall to the floor without using physics. How can I do that?

Q: I want the camera to rotate as soon as the level is loaded, giving an overview of the level; after that it has to come back to the normal view, so that the player can move.



=====
AUM 66
=====

Q: How can I get a function to spawn particles in a circle around my character?

Q: How can I fade out a sound that is played by snd_loop?

Q: I need a 3D "button" which gets colored to red when it is clicked and returns to its normal color after the second click.

Q: I have created some pcx panels which use the overlay flag. When I run it the project, my panels still have some residual black spots around them. Has anyone found a fix to this?

Q: How can I change the X position of a model using the keyboard?

Q: I have an entity that should display a new string above its head every 3 seconds, reading it from a text file. Can anyone help?

Q: My model includes an animation named "dance". How can I call this animation when the player hits something, then restore it to "walk" when the "dance" frames end?

Q: I want to display a question on the screen, and then to accept the answer and compare it with the predefined answer in the code. If it is correct, then the code should display the next question and accept the answer, and so on.

Q: I'd like to have a turret who can detect friends and foes. If a friendly entity comes near the turret, the turret should just follow it. On the other hand, if the player approaches, the turret should rotate towards it and fire at it.

Q: I want to fill a test-tube with a given liquid. During runtime the test-tube has to be filled using mouse press or using arrows on the keyboard.

Posted By: George

Re: AUM 77 - 66 - 09/04/08 10:30

Great effort, thank you!
Posted By: Laurentius

Re: AUM 77 - 66 - 06/25/10 19:23

=====
AUM 92
=====

Q: I found this nice code for a physics car, but it doesn't have a camera that follows the car. Can you help me?

Q: I would need the code for a simple bike that moves and lean as it turns.

Q: I would like to put an animated water texture inside a WAD file. How can I do that?

Q: I want to retrieve the distance between a ball and the floor and have a continuous update of its distance displayed on my screen. The ball is moving up and down.

Q: can someone show me working, tested code sample showing a sprite attached to a model?

Q: I can't figure out how to have things move towards specific entities, for example a rocket that appears and moves towards an enemy.

Q: With a "if (key_1)" instruction the player has to press 1 in order to continue. But this "key_1" only works with the "1" above the "A" (on AZERTY keyboards, or "Q" on QWERTY keyboards) and not with the 1 from the numerical keys at the right side of the keyboard. Is there a solution to make it work with the 1 above the 0 key as well?

Q: I'd like to know if the zero key was pressed and I can move the camera using the WSAD keys. Of course that I can test that by pushing the keys, but I'd like to know that just by looking at the monitor.

Q: I am not able to trigger the EVENT_SHOOT event. I'd like to have a text displayed when the moving "ent1" hits "ent2".

Q: How do I write a snippet which makes sure that a dead player doesn't react to mouse button clicks, pressed keys, etc?

=====
AUM 91
=====

Q: I started to make a little space game and I'd like to use a sprite for the engine exhaust, not particles. Can you help?

Q: How can I make c_scan to detect only a specific group of entities (for example only entities with skill14==1) and ignores all others ? SCAN_FLAG2 is perfect for that purpose, but I needed that tag for other group of entities and there are no SCAN_FLAG3, SCAN_FLAG4... unfortunately.

Q: What is the license of the models and code included in the AUM? I'd like to use them to create a commercial game and sell it.

Q: I can't create a passable entity (water) in A7; the “passable” water / terrain is handled as an “impassable” / normal floor.

Q: Can I mix *.wdl and *.c scripts in a project? I normally use the template6 *wdl scripts, but I can't find a “shader.wdl” like mtlFX.c in those templates. If I include mtlFX.c, I get lots of errors!

Q: I'd need an enemy that follows a path and if the player comes close, it starts chasing the player. When he is close enough to the player, he must shoot the player.

Q: I want to create a sprite that fades softly in when I come near it and fades out gently when I move away from it.

Q: I'd need an enemy that shoots the player and creates a health box (that can be picked up by the player) when it dies.

Q: I'm working on a high score table; how do I let the player input his name and then attach it to his score so that the score is next to his name?

Q: How do you create a mouse sensitivity snippet that allows you to see the change in real-time?

=====
AUM 90
=====

Q: I want my enemies to attack only when they can see the player. How can I calculate something like this ?

Q: I have upgraded to A7.82 but now I'm getting an error with your multiplayer Aum workshops (shooting from the wrong player). How can I fix that?

Q: I have found the cubemap rendering script at the wiki page. Can someone explain what does it do and how does it work?

Q: I have tried to add a sound to my fireplace entity, but I can't hear it. I am using this snippet:

Q: I'd like to press a key and have an animated sprite show up, go through all its frames and then disappear. The things should repeat when I press the key again.

Q: I want to have certain NPCs track the player and other objects using their heads and eyes. Should I use vertex or bone animations?

Q: I'd like to attach a rotating entity to the player, but it must perform collision detection as it rotates around the player. Can you help?

Q: Rarely, the game window goes to the background without any reason; this happens even if my game is running in full screen mode. Why is this happening?

Q: I would like to include an NPC script in my rpg level. Can anyone give me an example?

Q: I would like to know how can I get the coordinates of a point on an entity's surface that was clicked using the left mouse button.

=====
AUM89
=====

Q: The code from Aum88's Player -> Car article has a small bug: the gun can fire even if the player doesn't pick it up.

Q: I try to make a snippet that allows my enemies to respawn; when one of the enemies dies, another is created. Can you help?

Q: I use your function from Aum88's faq to detect the best resolution for my game; however, when I change the resolution by pressing the F5 key all the panels lose their positions. How can I make sure that my panels are properly aligned at any resolution?

Q: What event type do I have to choose (impact, push, etc) if I want a ball to trigger an event when it passes through a passable sprite?

Q: How can I split the big bitmap used as a heightmap for my terrain in several tiles?

Q: I've got two spheres and I would like to create a 3D line that connects them. How can I do that?

Q: How would you detect if the player is entering a certain room?

Q: How can I disable the camera movement when the user presses the zero key? And how can I enable the camera movement without having to press the zero key?

Q: Is there any way to scan all the entities and check their skills rather then stopping at the closest one?

Q: Does anyone have any suggestions for a simple gravity system that works effectively? I need the objects to fall but also be able to slide along the floor and down the slopes under the gravity's effect.

=====
AUM88
=====

Q: I am having trouble converting the enemy code in workshop 32 from C-script to lite-C. Can you help?

Q: I've made a game that runs at 1024 x 768 pixels but when I've tried it on a wide screen monitor (1440 x 900 pixels) I noticed that the image doesn't look sharp.Is there any way to restore the sharpness of the images, regardless of the resolution of the screen?

Q: I know that in C-script you could determine the width or height of characters in a particular font using the .char_x and .char_y properties. I cant find them in the lite-C manual though; has this been dropped from the language? What is the lite-C way of determining the height of a character for a font?

Q: I need an enemy that comes towards the player until it is 100 quants away from him, and then maintains that distance. Even the player runs toward it, the enemy should retreat in order to keep those 100 quants between it and the player.

Q: How can I make a circle on the ground around an entity?

Q: I am programming my weapons and I would like to know how to animate them correctly. If I keep the left mouse button pressed, the gun should animate correctly and only shoot one bullet per second. Can you help?

Q: Does anyone knows how to put a muzzle effect in front of an animated weapon model?

Q: I know how to use the ent_animate command, but I don't know how to set up the animation scenes in Med. My model has 101 animation frames; how do I set them up in order to use them with ent_animate?

Q: Is it possible to change the texture of a block in a certain area of my level?

Q: When I move the player with its face close to a wall (a BSP block) I'd like to check the wall texture and if its name is "steel", I'd like the player to turn its back against the wall automatically. How can I do that?

=====
AUM87
=====

Q: I want to make a bullet destroy itself when it hits a wall. It sounds easy but I didn't manage to make it work.

Q: I have made a platform (wmb) and the script to drive it, but the player falls through it. Is there any code which I can add to the lift script so that the player will stay on the lift and move with it?

Q: How can I make player's pan angle change depending on the position of the mouse?

Q: I have been trying to make a background picture that doesn't move. The camera is fixed; how can I use a picture that is 512 x 256 pixels so that it's behind everything all the times, stretched from 0,0 to 1024,768.

Q: I'd like to have my entities stop their animations if they aren't visible on the screen.

Q: I am trying to create a weapon that fires bullets when I click the left mouse button, but doesn't allow the player to fire a new bullet until the "shoot" animation is 100% completed.

Q: In the A5 templates there was a function called msg_show( ) that shows a message when it is called like this: msg_show("I AM AWESOME"); I was wondering if someone could create a new version that uses bitmapped fonts.

Q: I need help with creating a countdown timer that will work while the player is running, and if the timer <= 0 the player is not able to run any more. Also, the timer must recharge so that the player can run again.

Q: Does anyone know how I can make props that only animate when they get destroyed?

Q: Does anyone has an idea in implementing an entity passing through a tunnel and exiting on another tunnel? It's like a portal in Quake 3; when the player enters the portal, it'll exit somewhere else in the map.

=====
AUM86
=====

Q: Anybody knows what the lite-C equivalent of "my.oriented = on;" is?

Q: I'm trying to make a text zone, using a panel as background, and a text to show some text lines, using a ttf font. I want to show the text with "hyperlinks", that is, if the text is black over a white background, some of the text words are highlighted on blue, and so on. I think that the way to develop this is by using more text controls, depending of the number of words or lines to show. Is there an easier way to achieve this?

Q: I'd like to get started on a simple 3D breakout game. Do you have a small sample?

Q: Does anyone have a script that allows me to play a movie on a surface in a level? I would like to be able to click the surface in order to replay it.

Q: I am using the variable "PI" in my Lite-C code but get an error that says it is "undeclared identifier". Maybe I am missing some "include" to be able to use it?

Q: I'm having a problem with the menu code from Aum69. When I click on new game it gives me a notification "Empty prototype called in." The game starts and you can play it but you have to click on ok for the notice window to disappear. I would like to use this menu system as the base for my game but I have been unable to fix this notification problem.

Q: I want to make a tower defense game. How can I tell the tower to fire at the enemy with the smallest health value?

Q: I have a light switch, and somewhere else the actual light that needs to be turned on by that switch. How can I do that?

Q: If I create a string such as STRING* MyString = "Hi out there"; is there a way I can retrieve individual characters such as the letter H, and then the letter i, etc?

Q: Does anyone have a code snippet that would send one entity to the position of another entity, but also over shoot its position and correct itself? This way the entity would look like it's jiggling its position when it gets to its target position.

=====
AUM85
=====

Q: I'd like my camera to tilt when the player is going through a slope on a mountain. Can you help?

Q: How can I trap the mouse pointer in a rectangular area located in the center of the screen?

Q: How can I make it so that an entity moves for a specified number of seconds when I press a button?

Q: How can I make a sound play once as soon as a comparison instruction is successful?

Q: I want to attach the camera of my game to an object (sphere, etc) so that the camera has a physical behaviour and doesn't go through walls anymore.

Q: For my tests I'd need a snippet which, with the press of a button, writes camera's coordinates to an ini file. Then, with the press of another button, the camera would load those coordinates from the ini file.

Q: I'd like to be able to pick, move and drop an object using the mouse cursor.

Q: I have developed a small project where the player has to guess a number from 1 to 9. I can enter the code using the keyboard numbers from 1 to 9 but nothing happens when pressing the numerical keypad numbers. I have the num_lock on. Why does this not work?

Q: I'd like to have a dynamic light that can be picked up by pressing space near it and follows the player. The light should always be on, even after a level changing instruction. How can I do that?

Q: I'd like to create a mini math quiz with a text like 5 x 2 that appears on the screen. The users enter an answer and press Enter in order to move on to the following question. If they are wrong their score is decreased.

=====
AUM84
=====

Q: Is it possible to create a high precision timer for my racing game?

Q: Does anyone know a way to make an entity appear at a spot on the level where a user clicks?

Q: Is there any other way to detect entity collision other than using event_type? I'd like to track a collision only with a particular door.

Q: How can I make an entity move to the specified location?

Q: I have a car model; how do I make it follow the direction of the path smoothly?

Q: How can I make a bitmap stay full screen, regardless of the screen resolution?

Q: I wonder if it is possible to make an installer of the game I created. How can I do that?

Q: I want to have a light moving on a path. How can I do that?

Q: I'm looking for a jump-pad snippet like in Quake.

Q: How can I create a 3D menu, with 3D buttons that can be clicked?

=====
AUM83
=====

Q: I want to create a crosshair who will rotate the camera and also move around the center of the screen as I move the mouse around.

Q: Assuming you had a wmb file (a simple level) with lights in it, is it possible to programmatically change the light in the level in order to make it darker or dimmer?

Q: I want my character to play its "attack" animation whenever I press the left mouse button. How can I play the entire "attack" animation by clicking my left mouse button only once?

Q: What is the key mapping for double click? Is there any key mapping for this?

Q: Imagine a plane flying towards a destination that is out of view; I need a needle to point towards the destination. Can you help?

Q: Is there a way to scale my sky box texture (skybox+6.tga) so it doesn't get so stretched when it is created?

Q: Is it possible to have collision detection between a hmp terrain and snow particles?

Q: I want to make a particle that can rotate together with the entity that it is attached to.

Q: I have a entity that walks onto a path but I want him to move off that path when the player comes into his scan zone.

Q: I'm not sure what about the numerical scancode values that are returned on my PC. How can I check the values for my joystick?

=====
AUM82
=====

Q: I really like the collision camera from Morrowing. I tried converting it to lite-c but I'm having problems. Can you help?

Q: How do I get a mirror to be on a wall and see yourself (not a floor reflection)?

Q: How can I make a model transparent if the player is behind it (less than 60% of it is visible)? I need to make the buildings transparent if the player steps behind them.

Q: I'd like to read some names from a text file and sort them alphabetically. How can I do that?

Q: How can I create a timer that runs faster that sys_seconds? I'd like to have a clock that runs a day in 20...30 minutes.

Q: After starting my game, I can hear the music that I've placed in the level. As soon as I leave the area, the music stops abruptly. What is happening here?

Q: Is it possible to disable the window border (so that my panel is the border) and use the exit button designed by me?

Q: I'm trying to implement a simple sky-cube in a lite-C loaded level but I just can't seem to get it to work.

Q: I need the code for a level loading progress indicator in my game. Can you help?

Q: I'd like to know how is it possible to make my character visible to the camera even if there's a block between the camera and the character, blocking the view.

=====
AUM81
=====

Q: Is it possible to detect if my bouncing ball has collided with a particular wall?

Q: How i can make a weapon switch snippet?

Q: Is it possible to load skins on my entities at runtime ? What I mean to do is change the clothes on an entity at runtime.

Q: I have been trying to convert the cameras script from Aum4 with an addition from Aum7 (1st person add-on) to lite-C. Can anyone help?

Q: I want to have a bird in my game. It should move along the x axis, and when it is above the player it should drop some models on player's head, just like the enemies from Aum71 (Parallax scrolling), but for a 2.5D game.

Q: I'd like to load the desired level by clicking on its corresponding button on a panel. Can you help?

Q: Does anyone know of a snippet that allows you to touch an entity and makes a text appear? The one at au.conitec.net isn't working for me.

Q: Will somebody please give me a treasure chest action code?

Q: How can I create a metallic reflection in GameStudio?

Q: I'm trying to create a simple top down space game and I would like to have the player respawn after its death. How can I do that?

=====
AUM80
=====

Q: Is it possible to play a movie inside the level when the player comes close to a certain entity (the exit gate)?

Q: How can I generate random passwords using lite-C?

Q: I'd like to create a 2D arkanoid clone, but I hate the idea of defining hundreds of panels. Isn't there an easier way?

Q: My player model has 3 animations: "walk", "stand" and "look". I'd like it to "walk" when the movement keys are played, "stand" when it stops and "look" after a longer period of inactivity. How can I do that?

Q: I'd like my npc to move from A to B, stopping at certain points on the path for a specified number of seconds. How can I do that?

Q: I'd like to have some targets (sprites) that rotate around their pan angles when they are shot. Can you help?

Q: How can I see the c_scan range for an entity? I'd like to have some visual pointers, if possible.

Q: I've been playing Guild Wars and I have noticed that they have intelligent NPCs that walk, stop in front of walls, and then change their directions and move away. Could something similar be achieved using GameStudio?

Q: I've got the player surrounded by enemies, but I'm having a hard time trying to detect what enemy the player is facing. Can you help me please?

Q: Please give an example of showing local variables as panels over entities; there is too much confusion with this in the forum. Example: you have one action attached to all enemies and you want to see the health panel over them?

=====
AUM79
=====

Q: I am looking for a solution that allows me to check if certain entities are visible in the current camera view.

Q: What is the best way to make a simple lives system? It should start with three lives and every time player's health hits zero, one of the lives goes down and the game reloads. If no lives are left, the game should jump to a game over panel.

Q: I would like to display several parameters for my entities on the screen (for debugging purposes). Is there an easy way to do that?

Q: How can you jump with a character in lite-C? The character should jump only when he is on the floor.

Q: How can I create a convincing police siren sound effect that can be attached to my police cars?

Q: Is it possible to adjust the range of a dynamic light using the mouse wheel?

Q: I have placed invisible blocks in my level but the player is just going straight through them. Why could this be?

Q: I want to create an avatar of the player on screen, filming his face during combat. Is this possible?

Q: I'm trying to make a panel that shows me how much health I have. I want to make something like the Zelda panels.

Q: If I place a model in the level and I set its polygon flag, the collision works as expected; however, if I create the same model using ent_create and I set its polygon flag in the function that drives it, the bounding box doesn't change as expected. How can I fix that?

=====
AUM78
=====

Q: How can I detect if two particular objects hit each other?

Q: I would like to know if it is possible to put views from one or more cameras to small windows and display them on the screen.

Q: In my racing game I have an object to mark the start and goal. I want to start the watch when the player drives near it.

Q: I have a problem with A7. When I run the level after a build, no matter what script I use, the camera is messed up - it bounces all over the place. Any ideas why this is happening? I am using Windows XP with sp3.

Q: Would it be possible to automatically allocate unique ID's to each entity that is created in Wed, without it being left to the user to find a way?

Q: I'm building a quite big level, but when I want to compile it, I get the error: "Block outside level boundaries! What can i do to avoid this error?

Q: When an object is not tall (like a little box) my player just climbs on it. How can I get rid of that? I'd like to keep the player at the floor level all the time.

Q: I am using some sprites for the wheels of my train; however, the sprites are always looking at the camera. How can I fix that?

Q: Does anyone know how to put a fire particle effect behind the tail of a jet?

Q: How do I make a level take me to another level after getting a key, instead of making the entire game in one map?
Posted By: George

Re: AUM 77 - 66 - 06/28/10 08:40

Thank you, Laurentius! I really appreciate your effort.
Posted By: PriNova

Re: AUM 93 - 107 - 09/19/12 08:24

=====
AUM93
=====


Q: I'd like to have a countdown timer that shuts down the game after 10 minutes of play. Can you help?

Q: I'd like to adjust the frame rate through a slider on a panel, thus increasing and decreasing the navigation speed in my level.

Q: Is there any chance to have a door scan its surroundings and slide horizontally when the player approaches it?

Q: I started to work at a racing game and I'd like to have a car selection screen, where the player uses two buttons to go through all the available car models.

Q: Did anyone use the string1 and string2 strings from within Wed? I'd like to see a simple example, if possible.

Q: I'm looking for the easiest way to make drop shadows, that you can see in various games under the characters.

Q: I don't know if this is covered anywhere, but how do I make the number pad keys (2, 4, 6, 8) control player's movement?

Q: How can I create a health bar for my player character?

Q: I'd like to have a camera that can rotate around the player whenever I want it to. Player's movement would be done using the WSAD keys and the camera rotation would be done using the OP keys.

Q: Is there a way to keep a particle under a moving entity? I have fire that pushes out the bottom of my entity, but when the entity moves, the particles stay were they were created, leaving a trail of fire behind.

=====
AUM94
=====


Q: Is it possible to render a view on a target like a model, a texture or a bmap? I'd like to use that as a mirror, for example.

Q: Is there a way to cut a view into a circle? I'd like to use that for cartoon-style cut scenes, and rectangular views are looking boring after a while...

Q: How can I make to so that my level blocks change their shadows dynamically using sun_light and sun_color ?

Q: I need to display an image when my player touches an object. How do I achieve this? Any example would be helpful.

Q: Can anyone give me a tutorial about making a text box? I need to use a text box in order to ask for player's name.

Q: I would like to know how to make clouds using particles.

Q: I'd like to create a day / night sky system that changes in real time. Can anyone help?

Q: Is there a way to check if a certain entity was found using c_scan? There is only one "you" pointer and when I have several entities in the level, I can't tell if the entity I'm interested in was detected or not.

Q: How can I place a panel over an entity in my game? I can't use pos_x = entity.x it because when the position is 2500 the panel is out of my screen.

Q: I have several panels with individual pointers and I need to change their position uniformly. Is there any way that I can write one function to group them together so that I don't have to write a separate pos_x / pos_y for each panel?

=====
AUM95
=====


Q: I am trying to build a rocket that increases its speed until it reaches a certain value. Then, it should stop doing that and continue to fly at its current speed.

Q: Could you please fix "Booker" from Aum72? It doesn't work fine with A8; I get an empty pointer error and the books' info isn't saved to the disk.

Q: Can you show me how I can create a mini map of a level? I'd like to have a circular view that shows the player in the center of the mini map. When an NPC comes into view the NPC shows up on the mini map as well.

Q: I'd like to have an enemy with a sword that damages the player when the sword gets in contact with player's body.

Q: I'd like to have two panels that stay in the left / right upper corners of the screen regardless of the video resolution.

Q: How do I make the player collide with the walls and not pass through them? I'm not sure where to start.

Q: How can I attach a weapon to one of my soldiers?

Q: I want to have my player leaving a trail behind everywhere he changes direction. How can I accomplish this using the particle system?

Q: I need to know how to open a door if the player has got the security card.

Q: Please help me make a panel fade in and out. I have a main menu and buttons; when I press a certain button, I'd like the main menu to fade out and another panel to fade in.

=====
AUM96
=====


Q: How can I display strings and numbers on a panel?

Q: I'm making a 2.5D sidescroller game and I'd like to have an enemy that shoots towards the player if it comes close enough to it. How would I do this?

Q: I am making a small simulator with a 2d top down view (country map and sea). What is the best way to implement zoom in / out using the mouse scrolling wheel? I'd like to have 5 levels of zoom: max, 3 intermediary stages, min.

Q: I want to create several models faster and faster, but I can't do it. Can anyone help?

Q: I need to create models in random positions, but I can't get this to work.

Q: I'd like to have an UFO hover above player's head, dropping bombs when it manages to get right above it. Can you help?

Q: I use a separate VIEW* for my cut scenes. I'd like this view to activate and point towards an entity (a spaceship) 3 seconds after the player has come close enough to it. How can I do that?

Q: I want to create a car that has its wheels attached at runtime. How can I do that?

Q: How can I remove a button from a panel after I've clicked it? I only need to press it once.

Q: I'd like to have a looping soundtrack in my main menu. When the player presses a button, the loop should fade out and the game should start.

=====
AUM97
=====


Q: Is there any way to enter some text in Wed's behavior panel using comment tags?

Q: I would like to know how to terminate all particle and shaders functions before changing the level.

Q: I'm creating a racing game. How can I create smoke particles that are positioned near the exhaust pipe?

Q: I have several panels with buttons on them. When you click on a button, a new panel with buttons should appear. But after the first panel's buttons are clicked, the subsequent panel's buttons do not respond at all. Can you help?

Q: How can I make a countdown timer that will turn into red if its near the end?

Q: How can I make the player return to its initial position when it is eaten by the enemy?

Q: I'd like to have my enemies change their colors to red when the player is coming very close to them.

Q: How can I compare two objects based on their rank? I'd like the one that has a bigger score to win.

Q: I need to display an image when the player touches an object. How do I trigger this?

Q: I have noticed that the memory usage for my game is always increasing (I'm using Windows' task manager to track it). Why do this happen and how can I fix it?

=====
AUM98
=====


Q: How can I make a simple AI which triggers an event when it is near a specific model or the player?

Q: I am trying to create a virtual dice. I got 6 pictures resembling the numbers of the dice; how can I show them in a random way for 5 seconds, and then stop at one picture?

Q: How do I randomize questions in Gamestudio? I've got 5 different questions and want them to be randomly displayed when a button is clicked.

Q: Can anyone tell me how I cant prevent the camera to show the inside of my model, when i use a gun in the view like a FPS?

Q: How do I set health/hitpoints for enemies? Let's say there are 3 types of enemies in my map; I want all zombies to have 75 health, all mutants to have 100 health and all terrorists to have 125 health.

Q: I can not figure out how to stick an object to the camera so that it stays in front of a camera wherever I go.

Q: Does anyone have a snippet for an input box with "Cancel" and "OK" buttons?

Q: I need a function that removes bitmaps from the video memory. I need to display many panels in my level and I'd like to free the memory after using them.

Q: Would you have an idea on how to make a menu that changes its size automatically depending on the resolution of the resolution using scale_x, scale_y?

Q: Is it possible to interact with a panel that's placed on top of a patrolling entity? I'd like to be able to click a boss enemy and open a menu.

=====
AUM99
=====


Q: I'm looking for an auto game save snippet; when the player reaches a certain point in the level, the game saves, and if the player dies, he starts again at the save point, and not at the beginning of the level.

Q: I want to check if a video is still being played. Is there any way to do this?

Q: I used ent_create to attach a flare to a key model, so that player can find the key easier in the level. Now I want to remove the flare as soon as the key model is removed. Is there any way to do this?

Q: I am working at a racing game based on the car template and I'd like to have my cars rotate (change their pan) in a car selection screen, but only do that while they are touched by the mouse. Can you help?

Q: I'd like my camera to follow the player at all times, changing to a camera that rotates around slowly, showing the nearby areas, if the player doesn't move at all for 10 seconds. How can I do this?

Q: Do you have an example for a door that opens automatically (sliding vertically) when the player approaches it and closes automatically when the player has moved away from it?

Q: I'd like to have a weapon which fires bullets that don't disappear, but bounce from wall to wall indefinitely.

Q: In my game, the users have profiles to write their data; what should I do with these profiles when I publish my game? If I put them in the wrs file I can't change them anymore, and if i put them out of the wrs file, the users can change them to anything that they want to. Is there any way to solve this problem?

Q: I need a piece of code that will display a sphere made out of particles for my Star Wars clone. What is an easy method to create that?

Q: I'd like an example of code that starts playing a soundtrack and after a specified interval fades it out, while at the same time fading in a new soundtrack, just the way they do it at radio stations.

=====
AUM100
=====


No questions here

=====
AUM101
=====


Q: I have a text file with strings like this:

string11,string22
string33,string44

I would need a snippet which reads the text file, switches the columns keeping the data intact, and then writes them to a new text file like this:

string22,string11
string44,string33

Q: Can someone give some help with the VIEW commands since the manual is quite lacking here.

Q: Does anyone have a lite-C version of the Serious Grass code from Aum58?

Q: I want to have an in-game menu that is toggled on / off by pressing the "T" key. Can anyone help?

Q: I would like to use up to 8 gamepads in a single application. Is this possible without using a dll?

Q: I am not sure what I did, but my player model floats up off the map; I can still move it as if it were on the map, though. Anyone has any idea what might have caused this?

Q: I have a tent model has a lamp next to it (part of the same entity). I'm using lightrange and ambient, but I would like the light to come from the lamp, rather than the origin of the model (the tent).

Q: Is it possible to export from Gamestudio to Excel? I would like to write my inventory program in lite-C.

Q: I have a variable var money = 1234567; I need to show this number on a panel like this: 1,234,567. Is it possible to show the number with its digits separated by commas?

Q: Can anyone show me a simple algorithm for camera shaking?

=====
AUM102
=====


Q: I have a problem with an weapon code from the Aum; it waves as the player moves, but when the player stops the gun will stop at a different position every time.

Q: How do I set up a piece of code, so that when I close the game using Esc it saves the current date to a text file automatically?

Q: Anyone knows where I can download free sky cubes?

Q: How can I pass a variable into an action like I would with a function?

Q: I would like to have a button that toggles my game from full screen to window mode and back. How can I do that?

Q: Is there a simple way to trigger an event when a mouse button is released?

Q: I need the code for an NPC that rotates towards the player at all times, rotating gently until it reaches the final position. Can you help?

Q: I would like to play several sounds randomly, but I don't want them to overlap - is this possible?

Q: I would like to congratulate the player at the end of the level, displaying a bunch of "congratulations" messages. Is there a quick way of doing that without having to create lots of panels, etc?

Q: I would like the player to be attacked only by the enemies that are closer to a certain distance to it. How can I do that?

=====
AUM103
=====


Q: I would like my top view camera to point towards any entity I'm touching with the mouse pointer.

Q: Does anyone know of a lite-C script for a mini camera? The camera would be fixed somewhere in a level and the movie would be shown at a screen somewhere else at the level.

Q: I would like to get and display the xyz position of an object in a room, on which i am pointing with my mouse cursor. Hope you can help me.

Q: How can I show an entity skill on a panel? I've tried with digits, but it didn't work.

Q: How can I scroll a text that's displayed above a panel? The text is larger than the panel.

Q: How can I make a sprite appear on a key press? The sprite needs to fade in.

Q: How to make a sphere model be filled with mist?

Q: With c_scan, I can only scan static lights... how can i scan for dynamic lights?

Q: I would like to be able to set the colors for the cars in my racing game by clicking them, and the choosing one of the options from a menu.

Q: I'd like to have a ball that moves freely in the level and kills all the enemies that it is touching.

=====
AUM104
=====


Q: I am trying to find a simple example of a working health bar code for the player and an enemy

Q: I would need a teleport, an entity that teleports you to another place in the level when you walk on it.

Q: I am writing variables to a file via file_var_write and need to play them back in real time the exact same way they were recorded. The problem is that every time I try to do this it always seems to be a little faster on the playback; is there any way to fix this?

Q: What is the best way to display a dynamic text in 3D?

Q: How can I control a robot by reading the movement instructions from a text file?

Q: I would like to know how I can stitch 2 grounds together.

Q: What is the best way to make an NPC disappear at the end of his path and go back at the beginning over and over? I want to create a dynamic city street scene.

Q: I'd like the player to shoot fireballs that get destroyed when they collide with other entities.

Q: I want to create an entity that follows the player. Can anyone help?

Q: How can I make certain entities in my level to be visible even if they are behind walls?

=====
AUM105
=====


Q: I want a car to go down the street. When the car is at the end of the street, it should teleport at the starting point and do it again.

Q: I need a panel window with a circular shape but I don't know how to do it; anyone has an idea?

Q: I'm working with WED and the shooter template. I made a second level where the characters can buy weapons. When the player enters the second level without weapons, it looks good (no entities equipped). As soon as the player collects weapons in the 2nd level, random entities get equipped as weapons (a random box or plant) and they act as working weapons. How can I fix this?

Q: I'd like to have my main menu buttons slide down and stop at their final positions, but I don't know how to do that.

Q: I have created a shooter game using Gamestudio's template script but I can't get my player to grab the gun. The character's arms move like they are firing a gun but the gun is hanging in the air.

Q: When my player get close to steps (model blocks or level blocks from WED) he automatically lifts and goes up to the block, but I want it to keep always on the floor and only get on the steps when I jump on them.

Q: I'd like to have an mp3 file that plays one time after pressing a key. If the sound is still playing and you press the same key, the sound must start over.

Q: How can I use ptr_for_handle to make an entity pointer save-proof?

Q: I need a menu to pop up when I right click a button on a panel. Can anyone help?

Q: Is there any way to use the mouse button to move the barrels in my warehouse one by one to another position?

=====
AUM106
=====


Q: I have followed the 6 first workshops of the GameStudio Online Tutorial. Now I am trying to make my own button with 3 different images of the same size, but it doesn't work.

Q: How can I get the coordinates of the model which was hit by a c_trace ray?

Q: How do I manage to have collision using only 2D bmaps? My collision script is so buggy...

Q: I have a panel that pops up with a button on it. The button closes the panel correctly, but it doesn't disappear together with the panel. Can anyone help?

Q: How can I build a circular mask using two different panels? The first panel would be the one of the front and the other one would be the background.

Q: How can I restart a level and all of my codes? As an example, I remove an entity using ent_remove during the game and I'd like it to be created again when the level is restarted.

Q: I want to build an object that rotates. On this object another object should be placed, acting as a flickering light.

Q: I have a 3d model and want it coming out of the ground little by little, like a line of grass growing up on the ground.

Q: How do I make my models have shadows on terrain entities? I've tried everything...

Q: I'm struggling with a piece of code that lets an entity turn and run towards the player. Any ideas how to achieve that with a smooth movement so that the entity won't turn first, and then start running towards the player?

=====
AUM107
=====


Q: I am experiencing low frame rates with very large scenery in 3DGS. Could you tell me what techniques I should use in order to optimize the process of very large scenes in 3DGS?

Q: How would you assign an action from the script that you have created to an entity in Wed? I have copied the script inside the game folder, but I don’t see it inside Wed’s “Resources” tab. Is there a tutorial for this?

Q: I want to use 'inkey' to type a string to the screen and more importantly then save it to a txt file. This is explained in AUM 74 using a booker database as an illustration. When saving to a txt file AUM 74 gets into structs and pstring which I want to avoid; is there a simple way of saving the inkey data to a text file?

Q: I would like to have snow falling down from the sky, and when it collides with the ground I would like it to make a white pixel. Is it possible to do that?

Q: I am trying to make a dynamic loading level, with an entity that rotates while the level is loading and disappears after the level was loaded. I hope that this is possible.

Q: I am trying to get a spear to appear in my player's hand and move and rotate with it, but it wasn’t animated together with it. Is there any chance to do that and make it look nice?

Q: I have several entities that are parts of a single ship. How is it possible to treat them as a "single" entity (e.g. move and rotate the ship with all attached entities)?

Q: I'm trying to make a panel A with a button that (when clicked) will display panel B. Also, panel B will have a button that (when clicked) will display panel A, and so on. How do I do that?

Q: I have had 3DGS for awhile now but have never had the time to devote to a project until recently. Before I get started on any development I wanted to know if there are any tips anyone can give me to help me not lose my way and get distracted by little details. Should I be setting myself goals or making some kind of development plan or something? Really anything that you find helpful when you want to stay focused.

Q: Is there an opposite for enable_scan, like disable_scan? If the answer is negative, how do I disable the scanning for a specific entity, which was sensitive to scanning initially?
Posted By: George

Re: AUM 93 - 107 - 09/28/14 17:45

Thank you a lot, PriNova!
Posted By: VoroneTZ

Re: Aum's faq list - 02/15/23 12:39

=====
Aum108
=====


Q: File_var_write writes the variables separating them with a space, but I would like them to be separated by a comma. How can I do that?
Q: I have a text with 10 strings. How do I display them one by one, with a delay of 5 seconds between them?
Q: The script I am working with uses a panel with several buttons that are loading different levels. Nevertheless, the panel will not disappear from the screen after the level loads behind it. Is there any script example that removes the panel when I click a button to run the level?
Q: -d name=[value] Through this instruction, a user can change variables in the script. Isn't this dangerous? Is there a way to disable this once the game is published?
Q: How do I make sure that my entities are carried from one level to the other properly, always appearing in the right position?
Q: Is there a simple solution that would allow me to adjust the color of my rocks (models) in real time, displaying their RGB values of the screen?
Q: I'd like to generate nine balls that have random movement directions and random speeds, reacting to collisions with each other and with the other entities in the level.
Q: How do you count the number of entities that have a certain skill set to a certain value? Counting them in Wed is almost impossible in my situation.
Q: What tool are you using to compile the AUMs, George?
Q: How can I use the entity's string1 to set its name in Wed, and then display it when the mouse pointer is moved over it?


=====
Aum109
=====

Q: I need a "waving grass" effect. I know it is changing the entity pan if I remember well, but I don't know the whole code. If you can help me, I would be very grateful!
Q: I want to have a panel that allows the user to enter his name, and then displays it on the main menu,
Q: Is there any way to add an action to a terrain entity that was already loaded? The name of the terrain is small.hmp
Q: Is it possible to change the texture of a wmb entity at run time?
Q: My enemy dies when it is hit with a bullet. However, it will also die if the player is running into it or if a fellow enemy touches it.
Q: In the map editor I created 5 enemies that use the same action. The problem is that if one enemy dies the rest die too.
Q: I am looking for a way to draw lines, pixels and shapes on bitmaps during run time. Basically I am looking for a way to draw on objects. Can anyone help me out with this please?
Q: Mouse_ent seems to show a lot of info about the sprite or model its over but not the type. I need to click on and remove only a randomly created sprite entity during game play and not be able to remove models, etc.
Q: How can I disable the buttons of a PANEL?
Q: Is there a possibility to let a path emit particles?


=====
Aum110
=====

Q: How can I create a vertical door that opens when the player approaches it and closes by itself when the player moves away from it?
Q: How do I create timed doors that open when the player approaches them and close after a few seconds, no matter if the player is near them or far away?
Q: How do you create a door that locks the player in a room until it defeats an enemy?
Q: How do you create a door trigger? A piece of geometry is placed in the level, made invisible, and given a trigger behavior. Then a door skill is set to match. When the player approaches the trigger, the door opens and stays open.
Q: What is an easy way of counting how many entities of a certain type (for example guard.mdl) are present in a level?
Q: My friend is trying to play my game on his laptop and because the resolution needs to be smaller than 1024x768 it automatically switches to 800x600. How do I stop it from doing that?
Q: Would it slow down my game to run several c_scan instructions at once? Say like 25 enemies and the player.
Q: I have a 2048 * 2048 pixels texture. Is it better to scale it down to 0.250 of its original size (512 * 512 pixels) in WED, or to simply scale down the original texture in my image editor?
Q: How do you restart a project? In other words, how to you execute the main script again, in order to retry a mission if the player has lost its life?
Q: How can you check if a specific game save file exists before loading?


=====
Aum111
=====


Q: I need a snippet that runs at game start, asks the player to input his name, and then writes it in a player.txt file. How do I do that?
Q: I need to know how many quants an entity moves per frame.
Q: How can I simulate day / night transitions?
Q: I would like to have several enemies run their c_scan instructions, but I want to save CPU resources when the player is away from them. How do I do that?
Q: What is the best way to make a chain link fence?
Q: How do you change the default game screen color from blue to another color?
Q: I need a security camera that is triggered when the player enters a certain area, but it is reset when the player leaves the area (after a period of time)
Q: I need to play a movie with media_play and want the program to wait until the movie has finished before continuing with the next line of code.
Q: I want to adjust the volume of the snd_loop using hslider. Can anyone help me?
Q: Just wanted to ask if anyone knows a way to make specific panel buttons visible or invisible.


=====
Aum112
=====

Q: How can I make entity's tilt & roll angles adjust according to the terrain normal? I know that this can be done, because it is implemented in the Car Demo project.
Q: Can I see a simple level_loadendless example that makes the camera hover above the unlimited, terrain-based level?
Q: I wish to read the content of a file into a string, including all the carriage returns (\r) and line feeds (\n) characters. My problem is that the functions that come with Gamestudio appear to cut out carriage returns and line feeds no matter what I do.
Q: Should I make my sprites bigger, and then scale them down to produce better looking graphics?
Q: How can you check if a specific save file exists before loading?
Q: Does anyone know where to get the Aum 1 to 100 collection?
Q: I'd need code for a player that moves along the Y axis and at a certain Y value to trigger an ambient sound file.
Q: I'm working with the Shooter Template from AUM. Does anyone know how to get the elevator to move downwards?
Q: I want to ask if there is any possibility to get the number of frames of an animation scene?
Q: Does anyone know how to display a variable over a model? What I mean is that when the player walks up to a model, he can see a number that can change its value on top of it.

=====
Aum114
=====


Q: I want to add a 3D model to my level; it should load a random texture from an external file every time the level is run. Please help me with some code.
Q: I need to open a web page from inside my game.
Q: Can someone give me an example how to make a panel rotate?
Q: Is there any way to use a true type font without installing it?
Q: How can I display a string of text in the center of the screen? I know how to properly center a bmap panel on screen using screen_size.x, but I can't center a string of text. I am using true type system fonts, so the characters aren't equally spaced.
Q: Does anybody know how can I change the sky cube after loading a new level?
Q: I am trying to find a function that will allow me to place a vertical scroll bar on the right of a selection of items, and if I click and drag the scroll bar up and down, it will allow me to see the list of items going up and down. Is there a function for this?
Q: I want to implement a quick motion effect.
Q: Is there an easy way to dump the names of all the models in my game folder to a .txt file?
Q: My computer has 4 GB of RAM, which isn't that great, and WED seems to take up 1.8 GB of RAM with my current level. It's definitely caused by the skins of the models used for the level structure; each model has 4 x 1024 pixels textures. Any way to bring down the RAM usage without adjusting the skin size?

=====
Aum115
=====

Q: I need the code for a mouse that runs out of a hole, follows a path, and then returns to its home. Then, everything repeats over and over. Can you help?
Q: I use a water bitmap in my level. I can pass through it, but if it is placed horizontally, it is a barrier. 'Passable' is ticked, and I have tried using 'my.passable=on'. Please help!
Q: I have a lamp over a desk. How can I turn it on and off by clicking it with the mouse?
Q: I would like a fade-in & fade-out snippet for my music. It is designed to fade in a tense music loop if the enemy can see you, and then stop where it was and fade back out if the enemy can't see you anymore.
Q: A local Computer retailer has agreed to allow me to test run some of my project on his stores different gaming PCs. However I am not allowed to move the .exe or program folder on to the HDD, instead I must run it from a USB flash drive. Since there is a difference between read speeds of high end HDDs and USB flash drives, can I expect a slowdown in game execution and/or level load times?
Q: Is there a simple way in Gamestudio to receive an event when a mouse button is released?
Q: Where can I change the height of the eyes of the player (camera) in the shooter template code?
Q: I need a door that opens when a bullet is fired at it, not just when the player runs into it. Can you help?
Q: How can I make a flying camera that can go anywhere in the level, but doesn't pass through other entities?
Q: How can I check if the enemy can see the player? I have tried to use c_trace, but it always returns a positive number, even if there are no obstacles between the player and the enemy.

=====
Aum116
=====

Q: How can I make an entity that can be picked up appear near the player, in an area that can range from -1000 to +1000 quants around the player on the x and y axis and at z = 0?
Q: How can I create a drawbridge? In the game, when the player clicks a switch, the drawbridge should be lowered.
Q: How do I set up the path patrolling direction in Wed?
Q: I have a dragon model, and I am trying to create a fireball entity breathe out of its mouth and move toward the player.
Q: How can I create an on-screen keyboard with keys that can be clicked using the left mouse button?
Q: Does anyone have the code for a combo animation?
Q: I want to make a flying rocket that is generated from a fixed launcher every five seconds and hits a wall in front of it, exploding on impact.
Q: I am trying to create a panel with a button. When the button is clicked, it should display an image inside the panel's frame. The image should disappear when you click it.
Q: How can I make my NPC open a door? I have a hard time trying to make it do that.
Q: The player clicks the "create new character" button and you have to enter its name, which is then saved to a file on the hard drive. How do I do that?

=====
Aum117
=====

Q: How do I display several planet images, in a random order, on my spaceship's control panel?
Q: I have textured a model using a TGA image with alpha channel. When I run the level that includes it, I get a "Can't create D3D SKIN1.PCX" error. What should I do?
Q: How do I make a timer that shuts down my game demo after 5 minutes, showing the time that's left to play at the top of the screen?
Q: How can I draw lines from point A to point B on the screen?
Q: How can I create a satellite that rotates around a planet? The rotation speed should be customizable.
Q: Could you please update your "particles attached to mouse pointer" code from Aum65's FAQ? It doesn't work with the latest engine version.
Q: Can I make the mouse cursor visible only in the upper corners of the screen? I'd like to be able to click the game panels without pressing an additional key.
Q: I'd like to have an NPC display a line of text over its head whenever it is visible to the camera. Is this possible?
Q: It would be fun to have a star wars rolling text. I found an old wdl example in Aum. Is there anyone kind enough to turn it into lite-C?
Q: How can I make my main menu panel fill the entire screen, regardless of the video resolution?

=====
Aum118
=====

Q: How can I create an object that uses c_scan to damage the player when it is nearby?
Q: How do I create a totally transparent panel with visible buttons?
Q: How do I create a menu that opens up when I click one of my RTS units?
Q: How do I make an entity "wake up" (play a lively animation) when the mouse pointer if over it?
Q: I'd like to have a camera that rotates around the player, showing its surroundings, while a key is being pressed. The camera should return to a 3rd person perspective after I release the key.
Q: How do I load a different level, depending on the hallway that the player chooses?
Q: How do I put a rotating siren on top of my police car? It should rotate and move with the car at all times, of course.
Q: How do I complete a small puzzle for kids by simply running into its pieces?
Q: How do you create a 3D arrow that points down at a particular NPC who is moving on a path?

=====
Aum119
=====

Q: I've got some damage code from one of the AUMs working fine in my game. But how can I create a visual effect that looks like a red laser barrier which moves up and down at all times?
Q: I need code for a player/NPC combo. The NPC should start playing its "talk" animation when the player comes close and is looking at it. Can you help?
Q: How do I fade out my soundtrack after the player clicks the "Start" game button, before loading the level?
Q: I'd need some code for a little bunny that jumps for several seconds, rests for several seconds, and can avoid obstacles. Is it possible to do that?
Q: How do I reduce the size of my game? Right now, the published version has over 500MB!
Q: The player has to control 3 team members. How do I code it, so that a player becomes active and starts moving forward when it is clicked? When one of the other team members is clicked, the first team member should stop and the second member should start moving, etc.
Q: How do I code 5 weapons that can be selected by pressing the 1...5 buttons on the keyword?
Q: How do I create a patrolling entity that has a working flashlight attached to its helmet?
Q: I am building my levels using models. How do I create a function that writes down the coordinates for all their vertices to a file?

=====
Aum120
=====

Q: How do you trigger a dramatic music loop when the player enters a certain area and fade it out when it leaves the area?
Q: How do I manipulate all the entities (trees) that have been placed in Wed and have their skill1 set to 199? I know that I can create individual pointers and attach an action to each tree, but that would be overkill...
Q: How do I create a home cinema room that plays a small movie in a loop?
Q: How do I make my enemies change their skins to their more and more bruised versions as they get hit?
Q: How can I measure player's reaction speed after a sound is being played (in an accurate manner)?
Q: How do I code a bunch of spiders that are constantly chasing the player?
Q: How do I password-protect my game? Only the players who know the password should be able to play it!
Q: I'd need some code for a smart (creepy?) NPC that follows the player, but only when he isn't looking. Once that the NPC comes in sight, it should stop and play its "stand" animation, but switch to "walk" and move towards the player fast when he isn't looking at the NPC.
Q: How do I create a zoom in/out system? I am using a top view player/camera combo and I have tried to use camera.arc to do it, but I don't like the resulting fisheye lens effect. Is there another way?
© 2024 lite-C Forums