Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - MarkHest

21
Welcome! / Re: Hi there, big fan
January 14, 2016, 04:34:15 am
Warm welcomes to you!  :haha:
22
Welcome! / Re: Hi all!
January 14, 2016, 04:33:06 am
Welcome to the forums, dude! You'll love it here! ;)
23
General Discussion / (Unity C#) Help with beam attack
January 13, 2016, 03:10:20 pm
Hi!  :haha: I need some help from an experienced Unity programmer that can help me make this happen and make it look awesome! ;)
So I decided one of the bosses in my sideproject I'm working on is going to have a giant Beam attack that shoots from the body of the boss and follows the player with small delay in movement.
The beam is going to scale from the boss all the way to the ground it touches. Once a new ground level(height) is met the beam will scale accordingly.

Here's a gif of an animation I made to describe more precise what it is I want to do:
This actually took me like 30 Minutes to make...: ShowHide


Here is also a video of a game called Wings of Vi. Skip to 11:22 to see what kind of beam I want to create with better graphics:
Video

How can I scale the beam while one end of the object(the starting point, AKA the boss) is a set vector?
I'm not sure how to do this. Is the beam just an animation-object with a collider or is there a lot of programming involved? There are probably multiple ways of doing this. Show me the way you think is best :)

EDIT: I'm not asking to get the full code with files and animations and everything :P. I just want some guidance on what would be the best way to get this done. (Feel free to write code if you want though.)
24
Chat / Re: Post a picture of yourself
December 26, 2015, 07:44:46 am
I feel like joining!

Spoiler: ShowHide


Spoiler: ShowHide
25
Have you ever worked in Unity, Blizzy?  :D
26
I did this:



public void DamageNumber(int sndDamage, Vector3 sndImpactPosition)
    {

        string tmpString = sndDamage.ToString();
        float tmpRange = 0;

        for(int i = 0; i < tmpString.Length; ++i)
        {
            //int tmpInt = int.Parse(tmpString.Substring(i));

            int tmpInt = int.Parse(tmpString.Substring(i, 1));

            GameObject tmpObject = (GameObject)Instantiate(pDigitObject, new Vector3(sndImpactPosition.x + tmpRange, sndImpactPosition.y, sndImpactPosition.z), new Quaternion(0, 0, 0, 0));
            tmpRange += 0.4f;

            if(tmpInt == 0)
            {
                tmpObject.GetComponent<SpriteRenderer>().sprite = pDamageZero;
            }
            else if(tmpInt == 1)
            {
                tmpObject.GetComponent<SpriteRenderer>().sprite = pDamageOne;
            }
           
        }

    }



it turned out like this:

Spoiler: ShowHide



I used individual sprites instead of the number sheet, each being 50pixels width and height. Then changing the sprite of the newly instantiated game object to the number in the Int. I found it much easier that way.

Mission accomplished!  :haha:
Thanks for the guidance you two! :D



Next up is making Health Bars above enemies that aren't part of the GUI. Any ideas on how to trim/scale the health bar sprite without using the .fillamount option in the GUI?  :roll:
(This is something I've googled a lot and can't find a good solution)
(Nevermind, It's fixed now!)
27
So how do I get each individual digit in the Int?  :^_^':
28
Hiya!

There are some pretty reliable coders here and I don't know where else to ask, so maybe one of you can help me with a problem I'm facing in C# coding.
I'm currently making a game in the Unity Engine, it's an RPG/platforming game. If anyone of you is familiar with Unity that would be a great help as well.

Ok, now to the point!
When I hit an enemy in-game I want the damage inflicted to be displayed as an image and jump out of the enemy then fade out.

I have this example image:

Image Width: 500 Pixels
Image Height: 50 Pixels
(I will be using these dimensions in game)


What I need help with is making a Method that takes an Int and then cuts the image into each number in the Int, then displays it. Let's say in this case that the Int is 560 so that means the image would have to be sliced three times and put next to each other. I'm not sure if each number should be its own object, that would probably be best...

(The Damage Images script made by G_G does exactly what I want, but that's in Ruby and I haven't learned it yet so I can't read it... i think :p)

Help me improve on programming! :haha:
29
Script Requests / Re: Check if ME stops playing
November 21, 2015, 12:49:18 pm
Ah yes, I was thinking of using that one time but then I found out it changed some things with the audio I didn't like and found minior bugs. I guess I'll keep using wait commands. Thanks for the help anyway :)
30
Script Requests / Check if ME stops playing
November 21, 2015, 05:56:05 am
Heya! I'm further looking for script to further make The Missing Part better and better. Working on it as we speak!(Erm.. as I'm writing this, anyway!)
I'm wondering if it's possible to make a check of some sort to see if an ME or SE has stopped playing. Some of my music has intro parts that I'm using as SE/ME sounds. I'm currently adding a 'wait' command to line up these intros with the song itself but it's often very off-beat because of the different speeds that the game can run at.

So is there an easy way to somehow add a script with a call that says: "Play this ME, then play this GBM or BGS instantly afterwards" ?
I'm curious to see the results! If there is no easy way I'm just gona go ahead and use the 'wait' command as I always have and try my best to put it in a place where it can't lag off beat. This would just make the game a appear little bit more proffesional. Thanks for your time :)
31
Welcome! / Re: Zeriab is back, this time with hugs
October 28, 2015, 02:31:19 pm
*Hugs*

Welcome back!
32
General Discussion / Re: Being a Programmer
September 30, 2015, 02:37:29 pm
All I can do is offer a little story I guess:


I started studying C# and game programming just a year back and the amount of stuff that I've learned in just a year is amazing. Before I went to this school I knew NO PROGRAMMING at all (not even ruby). Nothing made sense at first. I didn't have the patterns in my head of what code was and how it was structured. I saw only numbers and words and it was all just a huge maze, I was really confused and thought to myself: "How the hell is any of this going to make sense??" (still do at many, many parts). But I was really enthustiastic about learning, though. That's a huge boost right there.

As time went on and I actually worked WITH the code, and also having a teacher to ask questions when I needed, I started understanding more of what all the different programming words meant and after even more time I learned their fuctions and how they were suposed to be used. After even more time I learned how to structure the code and things actually started to make sense to me. The maze was no longer a maze, it was now instead a library with carefully sorted books and I only had to know what order the books were.

I am by no means good at math... I'm actually pretty bad at it. Because of this I had(and still have) a lot of problem with my confidence in programming. I'm always thinking/saying to myself that I will never became a good programmer because I lack the knowledge to make quality code. But I've also realized that It's not all about the math, it's about how I read the code and how it all makes sense to me as a whole. I should be able to look at a code and at least make 20% sense out of it because programming to me is all about being able to properly read this so-called-maze and not just doing complicated math. It's about HOW you go about the thinking, not the calculating. Knowing this I can push through a lot of my doubts and keep going and learning more at a steady phase. Sometimes I think I should know more than I already do and that's just a personal problem of me always going back to my doubts.

But still, I push through that as much as I can and I want to send the message that you should go for what you really want. I myself think learning programming is a lot of fun, all while fightning doubts and fears of how to get better at it. I never give up and I hope that someday I will be experienced enough to actually get an employment in game-programming. I don't know how good a programmer I need to be to be employed and feel confident with it but I will keep learning untill I reach that point.
So far I'm only 1 year into learning programming from the ground up so I have HUGE amounts of stuff to learn and I know I can only become better by DOING IT. That's something I've learned about programming, you become good by DOING it. Like Blizzard said, you can't learn programming by simply reading about it, you need to DO IT and you need to do it A LOT for the "maze"(as I call it) to further make sense and to teach your brain the programming patterns. Things make sense more and more as you just keep programming. Never give up on what you really want in life.

I didn't think I'd write so much! I hope some of the things I wrote are inspiring and will give you some light on your situation. You most likely have more experience than me in programming but sharing experiences, challenges and how we overcome them can help light any situation. Good luck to both of us :)
33
New Projects / Re: One-day projects
September 30, 2015, 01:53:47 pm
Good game, blizz :)
I beat it with 1 total death death (it was on the last boss) and score 43150
Good design, it was really easy to figure out how the enemies moved and their shooting pattern, good for fast reaction in a space shooter. I play bullet-hell games every now and then so I memorize these things pretty fast. It was fun to mix RPG Maker's square movement patterns and the pixel movement one.

I like that you added music from Lexima Legends ;)
34
New Projects / Re: One-day projects
September 30, 2015, 01:09:11 pm
@Moshan: Thanks for commenting on the music, I had a lot of fun making it ;) I've never done anything like it before so it was a new experience

My record in Twin Obstacle course is 900. I guess I could get a lot more but the game gets boring fast :P
If anyone tries Twin Obstacle Course I want you to post your high score for fun :D
35
YES! I got it to work!  :haha:
This adds a lot more quality in the game. Thanks a lot for helping me. Level++ to both of you!
36
New Projects / One-day projects
September 27, 2015, 08:57:38 am
Hey, I just thought I'd post two of my one-day projects I've made using Unity. They've both taken me just a couple of hours to make so it's just for fun. Enjoy for those of you who try it.


Cube Jumping Game: https://www.dropbox.com/s/s2khivh02iagm67/CubeJumpingGameByMarkHest.RAR?dl=0
(Music is made using vocal sounds only)


Twin Obstacle Course: https://www.dropbox.com/s/d9w2xckaqfpca6r/TwinObstacleCourse.RAR?dl=0
(High score based game)
37
I don't understand what you mean :p
Also, this script is an addon to the Stormtronics CMS. I can't remember if I did actual tweaks to the main script itself but the one I posted is the only script.
38
Script Requests / A tweak needed to a script made by G_G
September 19, 2015, 05:01:11 am
Hey! A while ago G_G made a script for me that adds the "map music" option to the stormtronics custom menu system. It looks like this:


class Game_System
 
 #SWITCH_MAP = 8

 
   
   
   
 def reset_battle_bgm
   bgm = BlizzCFG::BATTLE_BGMS[$game_variables[BlizzCFG::BGM_Variable]]
   if bgm[3].downcase == "map"
     $game_system.battle_bgm = nil
   else
     $game_system.battle_bgm = RPG::AudioFile.new(bgm[0], bgm[1], bgm[2])
   end
   return true
 end

 alias gg_update_bgm_stuff_lat battle_bgm
 def battle_bgm
   if @battle_bgm == nil
     return @playing_bgm
   end
   return gg_update_bgm_stuff_lat
 end

 def real_battle
   return @battle_bgm
 end

end


class Scene_Map

 alias gg_reset_system_bgm_lat main
 def main
   $game_system.reset_battle_bgm
   gg_reset_system_bgm_lat
 end

 def call_battle
   $game_temp.battle_calling = false
   $game_temp.menu_calling = false
   $game_temp.menu_beep = false
   $game_player.make_encounter_count
   $game_temp.map_bgm = $game_system.playing_bgm
   $game_system.se_play($data_system.battle_start_se)
   if $game_system.real_battle != nil
     $game_system.bgm_stop
     $game_system.bgm_play($game_system.battle_bgm)
   end
   $game_player.straighten
   $scene = Scene_Battle.new
 end
 
end



I need something that keeps track of whether the map music is chosen or not, probably a switch..
I need this because when I switch to a boss music I need to revert the battle theme after the boss fight and then I need to know if the player has the map music option on or not.
So, basically a switch or something that turns on and off depending on what option you chose in the menu. Something like:

pseudo code...

if map-music
Switch 8 = true
else
Switch 8 = false
39
Welcome! / Hugs incomming!
September 05, 2015, 02:23:24 am
Right. I just wanted to say hi to everyone again. Some of you are new to me and some of you are still like comming home to family :haha:

If you haven't read the newest info on this thread in The Missing Part section, I am back to trying to finish the game.

So here I am! Hello everyone! Nice to be back at CP! Hopefully I'll be able to be at least a little bit more active, maybe I can help people with eventing or simple scripting or stuff. Since I've been learing C# for a year and just now startinc with learning C++ I think learning Ruby will be cakewalk, especially if I have help from other scripters. I like coding so If I could make a few scripts to help people that would be awesome.

How many core members are still here since I last became inactive? I've seen Ryex, Lord-Blizzy and Zexion so far.

Anyway. Happy to see you all again! *Hugs*
40
Video Games / Re: Minecraft Hardcore Run!
February 19, 2015, 02:22:50 am
We have 4 people in the skype group so I guess we have 4 people joining so far. You know what they say, the more the merrier, so if you still want in on this do a post in here and also tell me your skype name so I can invite you to the minecraft skype call group :)