How to create a random action on Scratch - mit-scratch

I want to build a game with these actions:
1- Random jams are being shot at the wizard.
2- The player should hit the jam with his wand to break them before they touch the wizard.
3- If any jam touches the wizard, the game is over and it a big text is displayed.
I wrote this script for jam, the first problem is. When the game is over it hides, then when I restart the game it does not show.
2nd problem is, I don't know how to make a random number of jams and how to let them move randomly.
Here an image of the game:
Here's my script:
]2

Here's the script and explanation
When the flag is clicked, a new jam is made every 1 second.
The jam is spawned at the far right
The clone will keep going left until it hits the edge, wizard or wand
After that it'll delete itself
If it touches the wizard, it will broadcast a game over state before deleting itself
The Game Over state stops everything
I hope this helped!

Related

animation frozen blend tree

so I was gonna make my first third person rpg game and im a pretty experienced game developer around 3 years still when it comes to animations my brain stops functioning correctly so I made my own rigged player model with blender and mixamo.
I was gonna swap out the model from the third person starter asset thing because making 3rd person character controllers is insanely hard and I swapped out the player model on the geometry empty with my model and I setup the animation stuff and to be clear I used the starter asset animation controller and the animations and set the model to humanoid so when I hit play all it did is stay on the first frame of the idle animation for the starter asset controller like this
https://cdn.discordapp.com/attachments/919670012028002357/1026996721127018607/unknown.png
you can still move run and jump it just stays solid the entire time, really weird issue.
I can send you my project files at any time if you need them.
there is my rig that came out of mixamo
https://www.mediafire.com/file/gusbnjhy7w4xu1o/sickplayerrig.fbx/file
have a good day please put down your suggestions even if you have a feeling they arent right

How to recover lost scene in Unity

I just started using Unity, made some progress and built a scene with some prefabs and logic.
While importing some package I downloaded via the package manager, I was asked if I want to open a new scene. Sadly I pressed yes, not knowing that it would erase my previous scene.
I was constantly pressing CTRL+S to save while working on my original scene, however I couldn't find any option to go back to my scene from this new scene.
Needless to say that countless CTRL-Z hits did not help.
It seems like the new scene replaced the SampleScene.unity file my original scene was saved in.
Is there anything I can do to recover the scene ?

object in unreal engine disappear?

enter image description hereso im basically new to blueprints and i am trying to make a game based on collecting trophies and i finished the code, but for some reason when i drag and drop the trophy it disappears, that wasnt an issue before, im also trying to randomize where the object spawns and i was succesful but after i made changes to the trophy code, suddenly it wont spawn at all, here are some screen shots. enter image description here
As I see you are destroying object on overlap, right before you respawn the object, you should destroy the trophy only after you spawn new, so destroy function must be called at the end, when other logic is finished.
And the best way to handle such operations is some kind of manager. You may use game mode, level, player controller as trophy manager, anything that will exist from the beggining of play and till the level is closed.

Floppy Disk icon Middle of my screen when game is running

I'm a beginner in unity and programming, I was following a video for making a Flappy Bird game. Everything works perfectly but when I run the game, I get a floppy disk icon middle of the screen and somehing called DontDestroyOnLoad starts working out of nowhere. I couldn't find or understand anything on google when I search for it. I'm posting the screenshots in case anybody wanna see it.
This icon and dontdestroyonload thing only appears when game is being run:
There's a little button in the type right of your scene and game view called "Gizmos", un-toggle that button, should fix your issue.
Also don't worry, Gizmos can only be seen in the Unity Editor for level editing and debugging purposes --> if you were to build the game, for instance on IOS, they would disappear.
(if this doesn't fix your issue, then I would just create a new scene and copy your gameobjects over one-by-one)
I see someone responded about the main part of a problem, but I'll clarify about dontdestroyonload
Don't destroy on load is collection of objects that won't be destroyed when new scene will be loaded, usually objects there come from running them through DontDestroyOnLoad method somewhere in a script, however I noticed that some time ago Unity creators started to put there some stuff related to built-in tools (like debug)

Unity help, indie horror game

I am making a game using a combination of Blender and Unity and have hit a wall. I am trying to make it so a lamp flies off of a table and smashes against a wall once the player walks past a certain point in the map.
I am having a hard time with this. Any help is appreciated.
You need to break this up into little parts.
The first part is that once the player walks past a certain point you want to do something. To do this, look at http://docs.unity3d.com/ScriptReference/Collider.OnTriggerEnter.html
An on trigger event will let you run some code when an object collides with another object. In your case, when your player collides with a certain point in the game.
Next, inside that OnTriggerEvent, you want to fire the lamp off the table. To best do this, create a keyframe animation (or whatever you're most comfortable with) that animates the lamp to fly off the table. Lastly, play that animation in the trigger event. http://unity3d.com/learn/tutorials/modules/beginner/animation
To summarize, when the user hits a certain point, play an animation on the lamp.