Hi,
In this game, the base_Scene(empty) runs the Level_1.
The problem is the brown box should move back and forth, but it stops moving.
Why?
Don’t forget the main scene is empty.
Hi,
In this game, the base_Scene(empty) runs the Level_1.
The problem is the brown box should move back and forth, but it stops moving.
Why?
Don’t forget the main scene is empty.
Are you using an external layout or an external event.
If it’s an events then the scene needs a link in the scene to run the external events. It’s under the plus symbol.
https://wiki.gdevelop.io/gdevelop5/interface/events-editor/external-events/#external-events
There is no external event but there is external layout.
Let me put it simply: I have two scenes, one of which is the base scene, which is empty, and the other is the first_Level scene of the game (which has animations). Now I want the base scene execute the level_one. Why when the game starts, the animations of the first scene remain fixed and do not run?
I recreated your concept and it works fine.
Are you using any behaviors on the object other than the tween? If you’re using physics then instead of tween maybe use a Prismatic Joint
I have used this tutorial:
https://wiki.gdevelop.io/gdevelop5/tutorials/space-shooter/
and:
https://wiki.gdevelop.io/gdevelop5/tutorials/space-shooter/12-levels/
My sprites exhibit physical behavior and simple animations. Please remember the following text: “The main scene is set in Level 1.”.
But the animation isn’t working!
Does your base scene run the level?
Since I don’t have an external event, should I still add an external event link?
Also, I have used this link from the above tutorial:
Open the events tab, and add a new action under the At the beginning of the scene event. Select Create objects from external layout and enter the name of our external layout, in that case, Level1 .
Should I change my tweeting code? Do you think that’s the problem?
Does the obstacle object have both the physics and the tween behaviors? I don’t think any of the other things are the issue.
Are you using an external layout for the objects? Are the objects added to the scene before the first tween is started?
This works for me
For some reason this doesn’t work.
Although, adding the pick all does make it work.
Where are the tween events in relation to the add layout events. Is the layout at before the event that starts the tween?
Is this
Before this
This code works for me:
Why does this code work, but the previous one doesn’t?
The only thing that comes to my mind is This code is written after importing “Level_1”.
What is your idea?
I’m guessing the objects were added to the scene after the tween event. Events are processed from top to bottom. The objects would need to be in the scene for the first tween action. Since both events have the at the beginning condition they were only triggered once during the 1st frame. They still get processed based on where they are in the event sheet. Without that initial tween, the other tween events wouldn’t do anything because they rely on that initial tween ending.