Bug in template Alien Conquerors
leon_twf@163.com
Member Posts: 6
Bug1:
I try to analyze the way that Alien1 moving. the move speed = game.MoveDirection = 1.
But looks like aliens can move faster than 1
But2:
Then I decided to delete the other disrelated scenes/actors/codes. After I deleted all actors in the Actor Tag "Projectiles", Alien1 can move in that way still. But, after I deleted this empty Actor Tag "Projectiles", Alien1 move and through the right wall directly! Even if I recreated the Actor Tag "Projectiles", it was not recovered. Looks like something was changed and not recoverable!
I try to analyze the way that Alien1 moving. the move speed = game.MoveDirection = 1.
But looks like aliens can move faster than 1
But2:
Then I decided to delete the other disrelated scenes/actors/codes. After I deleted all actors in the Actor Tag "Projectiles", Alien1 can move in that way still. But, after I deleted this empty Actor Tag "Projectiles", Alien1 move and through the right wall directly! Even if I recreated the Actor Tag "Projectiles", it was not recovered. Looks like something was changed and not recoverable!
Best Answer
-
tatiang Posts: 11,949You may need to re-select the tag name in the collision rule. Even though you named it the same thing, GameSalad uses XML IDs to identify attributes and tags, so the new tag with the same name will have a different ID number.
And game.MoveDirection is not the speed (hence why it's called Direction and not Speed). Often, when having actors move left and right, you set the direction to 1 (right) or -1 (left). There are other ways to achieve such movement, too.
I'd recommend following the video tutorials link in my signature. I have step-by-step instructions for creating an Alien Conquerors-based game.New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
Obviously it is:
===========================================
Rule
When All of the following are happening
if game.MoveDirection=0
do
Move to
move to: 0, -15 relative to: actor
at a speed of: 30
else
Move
move in direction: 0 relative to: actor in a(n): additive way.
at a speed of: (game.MoveDirection)
============================================
This confuses me a lot. How can this get working???
However the reality is, the template is working well, and the aliens can move with a speed like 100.
But I can't reproduce it in a new project.
Could you try it within the windows template? Thank you very much!
at a speed of: (game.MoveDirection)*90
"*90" is just hiding out of the vision:)
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User