Leave a comment

My Current Unworking Setup for the Store.

So I was just thinking around bouncing a few ideas and I started to come up with an idea for the store, but the problem is that I am not the best Scripter and not all of my scripts work..

So what I was thinking is I have 3 GameObjects in the Store. They each have a certain cost. When I click them, I am trying to access my ScoreSystem.myscore to reduce the value, and at the same time Instantiate that Object at the current position. So this is the script I used for one of the weapons, although it doesnt work and I dont know why:Image

 

Each weapon has a DontDestroyOnLoad script attached to it, so once it is loaded on this level, I want it to stay throughout all the levels. This is the sscript for that:

Image

 

My Character named ASHOOTER has this script attached to it to automatically parent the  Weapon to itself. This is one example:

Image

 

 

My character named ASHOOTER: I want it to have a script that calls the weapon (By its name) to its own position and rotation (and have variables to relatively edit that too). I can’t figure out how to script this…

 

and I think that is basically how I want it to work.. Let me know if I left out something. The other scripts are in my previous post such as ScoreSystem and Script for Coin Etc…. So fill in the holes?

 

THis is the layout as much as I can show:

Image

 

 

 

 

 

2 Comments

FPS inGame store

This is the setup for my FPS Shooter Game object:Image

This script is attached to the weapons gameObject in the Shooter: Image

This is the script for my ScoreSystem (Coins that I want to use to buy new weapons):

 

This is the Script for My Coins (I dont see why you would need it, but still)

Leave a comment

The Bullet in Inspector

The Bullet in Inspector

Leave a comment

The Box Collider

The Box Collider

Leave a comment

The Ship in the Heiarchy The Box is selected

The Ship in the Heiarchy The Box is selected

Leave a comment

tree problem.

BEFORE(FAR AWAY)

AFTER(CLOSER UP)

 

 

 

 

 

 

 

 

 

(all those trees and poles in the distance just popped up suddenly. i didnt put them there. I put gummy bears.)

1 Comment

Hello world!

Welcome to WordPress.com. After you read this, you should delete and write your own post, with a new title above. Or hit Add New on the left (of the admin dashboard) to start a fresh post.

Here are some suggestions for your first post.

  1. You can find new ideas for what to blog about by reading the Daily Post.
  2. Add PressThis to your browser. It creates a new blog post for you about any interesting  page you read on the web.
  3. Make some changes to this page, and then hit preview on the right. You can always preview any post or edit it before you share it to the world.
Follow

Get every new post delivered to your Inbox.