Why so many glitches in my project?
what seems to be wrong with my code now -.-
http://tinypic.com/r/2zji6oz/5
i have an actor that spawns the car(which i want destroyed and this is on) and a bullet actor.
no matter how the bullet touches it it wont destroy!!!!!! why :,(
http://tinypic.com/r/2zji6oz/5
i have an actor that spawns the car(which i want destroyed and this is on) and a bullet actor.
no matter how the bullet touches it it wont destroy!!!!!! why :,(
Comments
Also and changing of sizes in the billet or car actor going on at the same time?
and i have a spawner that spawns the cars at random but i have not unlocked it i put it in the normal car actor.
i noticed nothing i am trying to collide with that car works it just acts as though it didnt touch it
@FryingbaconStudios yeh both are moving towards each other it is just the car is also getting bigger as it moves thats maybe why
i didnt know gamesalad couldnt handle that
Try using a Change Attribute rule repeatedly (with some sort of timer), to change the size, instead of Interpolate. Then your collisions will work properly.
These are the sorts of strange illogical things you have to figure out, to make Game Salad work as you'd expect sometimes.
You'll find that if you turn the Interpolate behaviour off, it'll probably work exactly as you'd want it to right now.
So to do your resizing, you could try this in the car...
Timer: Every 0.1 seconds
Change Attribute: self.Size.Width = self.Size.Width -1
Change Attribute: self.Size.Height = self.Size.Height -1
That way, it'll get 1 pixel smaller each 0.1 seconds (therefore, 10 pixels smaller each second). Tweak values to your liking.
http://forums.gamesalad.com/discussion/54962/make-your-own-interpolations
This may help you.