Quantcast
Channel: Latest Questions by Zargo
Browsing index pages (50 articles)

Making a shader for an inside out sphere unlit?

I found a code on the forum that allows for a texture on the inside of a sphere, which is perfect for me. Though, I need it to be unlit, have a Color field, along with transparent (fade) to work, but...

View Article


Shadows disappear with distance

Now, firstly, when I say shadows disappear with distance, I am NOT talking about the farther away you are from a shadow/object casting a shadow, you can't see it any more. I'm talking about the farther...

View Article


Edit mouse look script to not be effected by rotation

Hello! Currently, I have found and am using a smooth, javascript MouseLook script which I will show below. Right now, the problem I am facing is trying to get the script to act normally no matter what...

View Article

Problem with text from a .txt file.

So lately I have been trying to create a script to read .txt files and split it into chunks for NPCs and dialogue. Except, I have run into a problem, when I try to see if something from the text file...

View Article

Room Path Generator

So I have been trying to write a script in JavaScript, but have been pretty stumped on this for the past few hours. So pretty much, here is the scene: There are multiple rooms with varying amounts of...

View Article


How to detect if player made building is air-tight(2D)

So, I am making a 2D block based game. I need to be able to tell if a custom, player made building is completely air-tight (So pretty much detecting if it is a completed house, with no holes outside)....

View Article

Determining Loading time/Loading screen

Now, I just want to understand loading screens a bit more. How do you determine the wait time(Progress bars)/when to stop showing the loading screen? For example, I have a game, that a loading screen...

View Article

Setting an int through function update

Here is an example script: MinimumWage = MinimumWage - Poverty/10; So, what I want is function update constantly checking that "MinimumWage" equals Poverty/10. But, it constantly minus's the number...

View Article


Spreading Fire (Bullets)

So i currently have created a tank, but its Shell shots are bang on perfect everytime. What i want is to have them be a little off somtimes, not always perfect. How could i do somthing like this...

View Article


Counting number of blocks in an area

Title sums it up. I have been working on random generation lately. I have made it so when water is generated, there is a chance that a "water checker" is spawned. What I want the water checker to do is...

View Article

Displaying Z Rotation through script

So I have created a dandy Airplane script, while your flying it displays your Speed, Turning Speed, Rotating Speed, ect. But I also want to display the Z Rotation of the airplane to help players know...

View Article

How do other games fight the lag?

So I have been modeling lately (I am a Programmer, I am just practicing modelling) But I have run into a problem. I made a 2 story apartment building, not much detail. 2 windows, and no interior...

View Article

Multiplayer Question before I get started

So, I have made a basic multiplayer. Nothing to it. Just 2 capsules walking around From different computers. But, I want to take this to the next level! Individuality: I want each Person to be...

View Article


3D Text Problem

So I've had this problem for awhile, but never have been able to figure it out. here is an example script of something that wont work on 3D text. ------------ var Money = 0; function Update(){...

View Article

Script not working

So I have made a script for a game that doesn't work and I have no idea why. can anyone spot anything that could be wrong with it? I'm trying to make it when I get a hoop with a basketball, it plays an...

View Article


Changing 3D text through script

So basically, I want a script that shows the number of "players_knights" in a 3D text, but I've searched everywhere and have tried everything but haven't been able to get anything to work. so can...

View Article

Random Drops

OK, So i how would i go about making a random number drop for a palm tree? I want it so when i chop down the palm tree (a script i already have), it drops maybe 0-2 coconuts. But right now the script...

View Article


Placing Buildings

has anyone here ever played Empire Earth? If so How would i go about making a script where i could place buildings on the ground with the mouse (Like Empire Earth)? If you haven't ever seen/Played it,...

View Article

Wood Gathering problem

So i have a script where the player can chop down trees, But i want it so when the player chops down a tree, He gets wood. Heres the scripts. TREE CHOP-- var chopDistence = 10; var chopTime = 5; var...

View Article

Script to GUI text

So I have a basic money script. So far, I have it so every ten seconds you get 1$ but there is no way I can see my money in game without out "Print" so how can I put the amount of money I have inside...

View Article
Browsing index pages (50 articles)


Latest Images