Hello, basically I’m creating a object grabbing system for my game, I had no idea how to do something like this so I’ve exactly replicate this blueprint on this video tutorial;
Surprisingly everything worked and is working to this moment, but one thing that I need to be able to do is to rotate the grabbed object by pressing/holding a button, sadly he doesn’t show you how to do that. Here is my question; how would I do something like that? what nodes would I have to add? Thanks.
Put it after the Tick Event with the branch, it will take your mouse postion, create a rotation - 5000 (I needed to put this high amount to have a better looking when rotating the object, if you want the object to rotate slowly, just increase this number a lot, like 6000, 7000 and so on.
Hello, thank you for your help Why doesn’t everything just work! I’ve replicated your script (as shown) but it looks like something isn’t working, it’s probably me (messed something up again) for some reason when I press (alt) it doesn’t look the same as on your video, and I don’t know what this is causing , maybe you know the fix for this, and sometimes (most of the time) when I grab a object it just starts rotating without me pressing anything, sometimes slow, sometimes faster and sometimes when I press (alt) they also start rotating (very fast) I would really appreciate if you would help to fix this
Oh yeah and I’ve also created a short video this time
if you replicated the second bluprint in your “Mouse Input” set up, there is no reason to be different than mine…
check it again pls and if possible, show me another video, thanks
Oww, Hello!, I’ve left this for now (I’ve realized that is isn’t what I need) Now I need some help with creating a basic stamina system for example when running it takes away some % of the stamina, and when not running anymore it regenerates. Any ideas how to do so?
Oh yeah, I’ve seen this tutorial already, (I’ve learned a lot from it) to be honest that is the exactly same tutorial that I used to create my stamina bar. I also have a inventory (fully working) but I didn’t use this one, it’s a bit too basic, I’ve used a different tutorial for that (surprisingly, everything seems to work fine) I used this:
I need a more advanced stamina system for example, when you run it takes away some percent of your stamina (from a bar, like in the tutorial) and when you stop running, it regenerates back to 100%
Using the same turorial ,you can drag from your stamina logic and get the Stamina variable minus a float or integer value than set it to be new value
To recover, you can create a logic from your Event tick. let´s supose that your stamina default value is 10.
from the event tick, if the stamina value is less than 10, you get the stamina value add a float/integer value to it set the new value into the variable. Note that you have to create a timer to avoid the event tick update every frame, you can create a timer by 1 or 2 seconds, for example
With that logic, the stamina will increase only if it is less than 10.
You can also set the Stamina to 10, if it becomes more that 10
hey FilipeTessaro
I was looking into creating 2 different interactions
pickup / release when P key is pressed
rotate object when R key is hold
And i ran into your solution ( looks like this solution is to tackle another scenario but I was hoping to replicate your blueprints at least )
However, I’m not 100% sure if I got the blueprints correctly. Can you help me out ( Tesla’s pickup/release part is already done and it works fine)
that would be great !!! little things like this somehow help us (at least me) know more about blueprints so yeah please do
ps: also, what do you think about having 2 different buttons to handle Rotate Or Move… the events still need to be linked to the same Event Tick do they?