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.

Topics - marvoc

Pages: [1]
General Discussion / keep playing music only in menu [SOLVED]
« on: October 06, 2021, 04:11:47 PM »
Hi guys,
 I red how to keep playing music through the menu, even how to dont duplicate when I change scene in menu. But I have problem how to turn it off once Im in game level.

Using DontDestroyOnLoad on Audio object in Menu (where is my audio playing) + Singleton from Ecosystem to dont duplicate it when Im on different page (scene) in menu.
Problem is when Im going to game level, because this Audio in the scene from DontDestroyOnLoad is still there.
I tried to destory this object, but when I came back to the Menu, my Audio wasnt there at all....

Any hint how to reslove it? :)

User Showcase / my last build of alien shooter - Shoot 'em up
« on: October 24, 2020, 04:27:59 PM »
Hi all,
I'd like to ask you if someone would like to test my last prototype or if you have any tips where to get some feedbacks on it?

Here you can download build

and here is help as well

Btw. here is short video of gameplay to know what Im talking about (but it hasn't best quality).

Thank you for any feedback :)


General Discussion / Navmesh agent different shape
« on: August 10, 2020, 09:09:16 AM »
 I have a questions about issue what I have about cylinder shape of navmesh agent. I'd like to change it, because I have a tank, what has  a rectangle base.
I can do navmesh agent shape bigger, but then, on sides, everything collide before to hit mesh, or if it is smaller, then it intersect with other models at front and back side.

Any ideas?

PlayMaker Help / Keep unit inside area [SOLVED]
« on: September 18, 2019, 08:02:15 AM »
Hello again:)
Im fighting with an issue, how to keep player unit inside area. But in this case this inner space has cone like shape. And unit can be near to the top or bottom. Because shape is 4side cone, dimensions are different in term of height too. Smaller area on top larger at bottom. Here is picture:

You can see it on middle picture.
In pic.2 you can see that perpsective of camera creates non linear view. And within this area I have to keep the player.

My first idea was to do this with angeled boxes with enter trigger. So when you go right and hit Ill clamp X axis on joystick (getting Horizontal and Vertical axis). But when I moved up/down player unit made a ugly zigzag effect as it went by side on angeled wall (still same height level).
So doesnt work.

My second idea was only make walls physical and collision with player should stop it. But then I need Riggidbody as Kinematic and then starts to rotate and jump away. So doesnt work for me, at least what I know:)

Third idea was do a 4 raycast in every direction and clamp its destination. So when destionation from wall lower then 1 I have to clamp that direction.
If I compare values then I should go to another node, there should be again getting joystick axis and clamp value of that direction and again raycast which stores destination from a wall + compare if value that destenation is bigger then 1 go back to previews node (base) this should be for each direction.
And lets say if this work what happen if you are in the corner.

Is it some easiest way how to do it? :)



Work In Progress... / Shooter game :)
« on: July 09, 2019, 04:19:20 PM »
Hi all,
 I'd like to introduce my prototype of a shoot 'em up game. Here you are a soldier and you can enter to enemy vehicles or aliens. I have only few units and graphics is obviously prototype ;)
Here is link to download a zip, where you find clean Unity build, so you can try it.

And here small maunal in PDF, to be more informated about the game.
In general is it classic shoot 'em up but you can flight or be as ground unit as well.

Saving is working and I use Easy Save for it, otherwise is only Playmaker. Its really cool and powerfull tool especially with this nice comunity ;) so thanks to you all.

I'll be happy to all possible feedbacks, or in general if it's worth spending time on it :)


Hi again ;)
Im trying to resolve this problem:
I have an enemy (V1) and player (V2) vectors. I subtract them and get that line between. Then Im using "Get Vector Length" to get its length. And checking when enemy is near to the player by float value of length. This script is attached on enemy, so he has somehow range of attack. When player comes near, enemy attacks.
If you imagine enemy eg. as spider.
On the picture spider head is facing down. Should attack only what he see and this is the reason why I want make detection circle only by half (so red part shouldnt be taken, because of his back).
And of course enemy can rotate, so even this red area should rotate too, depend on its front (head).

Any tips? ;)


Hi all :)
I have one specific problem.
As you can see on picture Im raycasting from camera to player unit (blue hexagon) and then it continues.
Id like to have a sphere (red circles, there are two of them as to be 2 examples) which will move with vector.

This could be done (I suppouse) when Ill take direction vector somewhere on that raycast, lerp it and set it as position for the sphere.
First time I through Ill use 50% lenght of raycast between terrain and camera, but it will not work. Height is different in each position.

But I need to have sphere on exact height. Let say 30m from world origin. Never will go +/- Y. But should move in X and Z.

Why Im using raycast from camera through model? Because Im using air and groud units and from player point of view (is it shoot em up game) is this solutinon more precise then to have only colliders. Then is different angle when is it on bottom or on top of the screen.

Hello all:)
 I have only short question.
I have Shop scene when, after selling an item, Im deactivating its Buy button. This is working, but when I come again back from other scene, button is active again.
What I should do, to keep button deactivated?

Thanks :)

PlayMaker Help / Raycast [SOLVED]
« on: January 30, 2019, 10:11:54 AM »
Hello again,
 thanks for previews answers. Now I have a different issue. I'd like to raycast from camera to moving unit, and length of raycast should be longer then only this distance.
Moving units - gray circles
Raycast - as two lines

When I open Raycast rollout, I know about vector3 (camera center) to project from, but Im missing here something like Target (defined as Vector3). So in this case I wouldn't need vector3 direction vector.

Its possible to add something like this to raycast, or there is another way how to do it? ;) I think that "Vector3 direction" is already some defined line comapre to only point "Vector3".

Mayby completly bad question ;)

Hello :),
 I’ve started play with Playmaker one moth ago and now I reach point where Im not sure if is it an error or my mistake.
I made this showcase video:
Imagine that red box is a tank (shape when is scaled).

So my issue that box when is using Smooth Look At Direction is starting rotating, but for me, without reason. Im using nav mesh and mouse pick for move.
I tried move with keyboard and is still the same.
I want raycast below tank, so Y = -1, and its working if I check debug line.

Im adding picture of settings too.
And I checked sample "Raycast Hit Normal" too.. but there is everything fine :)

Any ideas? :)

And, btw, this is an amazing plugin for Unity :) thanks for it!

Pages: [1]