can anyone tell me whats wrong with this .cap?

For questions about using Classic.

Post » Fri Jan 30, 2015 2:34 pm

Hi all.

I am not exactly a genius when it comes to writing code, but I am a little stumped by this cap. I am just trying to send a bunch of tanks from point to point using RTS object and each turret aims at the mouse.

I have a feeling its the FOR EACH events that are messing it up

to summarize..

1. the objects dont seem to destroy at the start.

2. the FOR each doesnt seem to be behaving correctly for the turrets.

3. I had to set the rotations frames to 11.25+1 because 11.25 didnt work right.. and 360 / 32 = 11.25

Would be very grateful for some furtther info and advice for correct execution.. I didn{t put the tank in a container because I want the turrets to be destroyable seperately from the tank body.

cap file
https://www.sendspace.com/file/9sdsic

event list
Image

Thanks as always...
B
11
S
4
G
5
Posts: 171
Reputation: 2,446

Post » Fri Jan 30, 2015 9:01 pm

I fixed your cap , if this is what you are looking for then take a real good look at the changes I made . You do not need any of the For Each events !!!!!!!!!!!!!!
The trick here is CONTAINER
You do not have the required permissions to view the files attached to this post.
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Sat Jan 31, 2015 4:47 am

Thankyou sir! - its very close, I had the tank turret set to show the correct isometric angle in the same way the tank body does, but that was easy to change

however, as I wanted the turrets to be destroyed seperately from the tank body, container doesnt really serve the purpose.. I guess I could set it to invisible though..

start of layout : destroy is not working for some reason.. it works when all other events are disabled though..

I would be grateful of any further advice!!
B
11
S
4
G
5
Posts: 171
Reputation: 2,446


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests