Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - FanOfHumor

#21
Nevermind I figured it out with Seek and it works exactly correct now.Thanks Again!
#22
Thanks again.That solved it but there's another problem now.WriteRawLine skips to the next row everytime it places text.
The way I have it is that each placement adds to the last and after those are placed it moves to the next line.
Code: ags
			other[othernum]=Overlay.CreateRoomGraphical(mouse.x-15, mouse.y-15, 4);
			somethingx=String.Format("%d",other[othernum].X);
			somethingy=String.Format("%d",other[othernum].Y);
			File* output = File.Open("scene031.txt", eFileAppend);
			output.WriteRawLine("CreateObject pos=");
			output.WriteRawLine(somethingx);
			output.WriteRawLine("; ");
			output.WriteRawLine(somethingy);
			output.WriteRawLine(" dir=0.0 type=Bot3");
			output.Seek(1, eSeekEnd);
			output.Close();

What I want is for it to not skip every time text is placed.

This is what was output to the txt file.

Code: ags

CreateObject pos=
414
; 
262
 dir=0.0 type=Bot3
CreateObject pos=
414
; 
262
 dir=0.0 type=Bot3
CreateObject pos=
414
; 
262
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
406
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
406
 dir=0.0 type=Bot3
CreateObject pos=
525
; 
411
 dir=0.0 type=Bot3
CreateObject pos=
525
; 
411
 dir=0.0 type=Bot3
CreateObject pos=
474
; 
504
 dir=0.0 type=Bot3
CreateObject pos=
474
; 
504
 dir=0.0 type=Bot3
CreateObject pos=
474
; 
504
 dir=0.0 type=Bot3
CreateObject pos=
470
; 
321
 dir=0.0 type=Bot3
CreateObject pos=
470
; 
321
 dir=0.0 type=Bot3
CreateObject pos=
428
; 
450
 dir=0.0 type=Bot3
CreateObject pos=
428
; 
450
 dir=0.0 type=Bot3
CreateObject pos=
428
; 
450
 dir=0.0 type=Bot3
CreateObject pos=
79
; 
291
 dir=0.0 type=Bot3
CreateObject pos=
79
; 
291
 dir=0.0 type=Bot3
CreateObject pos=
79
; 
291
 dir=0.0 type=Bot3
CreateObject pos=
103
; 
556
 dir=0.0 type=Bot3
CreateObject pos=
103
; 
556
 dir=0.0 type=Bot3
CreateObject pos=
199
; 
166
 dir=0.0 type=Bot3
CreateObject pos=
199
; 
167
 dir=0.0 type=Bot3
CreateObject pos=
294
; 
402
 dir=0.0 type=Bot3
CreateObject pos=
294
; 
401
 dir=0.0 type=Bot3
CreateObject pos=
294
; 
401
 dir=0.0 type=Bot3
CreateObject pos=
147
; 
356
 dir=0.0 type=Bot3
CreateObject pos=
147
; 
356
 dir=0.0 type=Bot3
CreateObject pos=
290
; 
208
 dir=0.0 type=Bot3
CreateObject pos=
290
; 
207
 dir=0.0 type=Bot3
CreateObject pos=
290
; 
207
 dir=0.0 type=Bot3
CreateObject pos=
265
; 
454
 dir=0.0 type=Bot3
CreateObject pos=
265
; 
454
 dir=0.0 type=Bot3
CreateObject pos=
265
; 
454
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
592
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
592
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
592
 dir=0.0 type=Bot3
CreateObject pos=
278
; 
338
 dir=0.0 type=Bot3
CreateObject pos=
278
; 
338
 dir=0.0 type=Bot3
CreateObject pos=
236
; 
553
 dir=0.0 type=Bot3
CreateObject pos=
236
; 
553
 dir=0.0 type=Bot3
CreateObject pos=
236
; 
552
 dir=0.0 type=Bot3
CreateObject pos=
339
; 
386
 dir=0.0 type=Bot3
CreateObject pos=
339
; 
386
 dir=0.0 type=Bot3
CreateObject pos=
395
; 
534
 dir=0.0 type=Bot3
CreateObject pos=
402
; 
518
 dir=0.0 type=Bot3
CreateObject pos=
346
; 
80
 dir=0.0 type=Bot3
CreateObject pos=
346
; 
80
 dir=0.0 type=Bot3
CreateObject pos=
346
; 
80
 dir=0.0 type=Bot3
CreateObject pos=
354
; 
86
 dir=0.0 type=Bot3
CreateObject pos=
667
; 
293
 dir=0.0 type=Bot3
CreateObject pos=
667
; 
295
 dir=0.0 type=Bot3
CreateObject pos=
666
; 
296
 dir=0.0 type=Bot3
CreateObject pos=
660
; 
296
 dir=0.0 type=Bot3
CreateObject pos=
487
; 
546
 dir=0.0 type=Bot3
CreateObject pos=
487
; 
546
 dir=0.0 type=Bot3
CreateObject pos=
486
; 
549
 dir=0.0 type=Bot3
CreateObject pos=
305
; 
248
 dir=0.0 type=Bot3
CreateObject pos=
305
; 
248
 dir=0.0 type=Bot3
CreateObject pos=
305
; 
248
 dir=0.0 type=Bot3
CreateObject pos=
249
; 
383
 dir=0.0 type=Bot3
CreateObject pos=
251
; 
383
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
379
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
380
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
380
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
380
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
381
 dir=0.0 type=Bot3
CreateObject pos=
297
; 
539
 dir=0.0 type=Bot3
CreateObject pos=
297
; 
539
 dir=0.0 type=Bot3
CreateObject pos=
297
; 
538
 dir=0.0 type=Bot3
CreateObject pos=
411
; 
285
 dir=0.0 type=Bot3
CreateObject pos=
412
; 
293
 dir=0.0 type=Bot3
CreateObject pos=
485
; 
484
 dir=0.0 type=Bot3
CreateObject pos=
485
; 
483
 dir=0.0 type=Bot3
CreateObject pos=
359
; 
435
 dir=0.0 type=Bot3
CreateObject pos=
34
; 
606
 dir=0.0 type=Bot3
CreateObject pos=
34
; 
606
 dir=0.0 type=Bot3
CreateObject pos=
37
; 
604
 dir=0.0 type=Bot3
CreateObject pos=
359
; 
639
 dir=0.0 type=Bot3
CreateObject pos=
359
; 
639
 dir=0.0 type=Bot3
CreateObject pos=
356
; 
638
 dir=0.0 type=Bot3
CreateObject pos=
222
; 
665
 dir=0.0 type=Bot3
CreateObject pos=
221
; 
665
 dir=0.0 type=Bot3
CreateObject pos=
219
; 
665
 dir=0.0 type=Bot3
CreateObject pos=
217
; 
659
 dir=0.0 type=Bot3
CreateObject pos=
83
; 
514
 dir=0.0 type=Bot3
CreateObject pos=
83
; 
514
 dir=0.0 type=Bot3
CreateObject pos=
110
; 
239
 dir=0.0 type=Bot3
CreateObject pos=
107
; 
236
 dir=0.0 type=Bot3
CreateObject pos=
104
; 
236
 dir=0.0 type=Bot3
CreateObject pos=
209
; 
380
 dir=0.0 type=Bot3
CreateObject pos=
211
; 
382
 dir=0.0 type=Bot3
CreateObject pos=
211
; 
382
 dir=0.0 type=Bot3
CreateObject pos=
211
; 
382
 dir=0.0 type=Bot3
CreateObject pos=
61
; 
427
 dir=0.0 type=Bot3
CreateObject pos=
53
; 
414
 dir=0.0 type=Bot3
CreateObject pos=
44
; 
401
 dir=0.0 type=Bot3
CreateObject pos=
53
; 
300
 dir=0.0 type=Bot3
CreateObject pos=
59
; 
290
 dir=0.0 type=Bot3
CreateObject pos=
156
; 
92
 dir=0.0 type=Bot3
CreateObject pos=
156
; 
92
 dir=0.0 type=Bot3
CreateObject pos=
156
; 
92
 dir=0.0 type=Bot3
CreateObject pos=
159
; 
94
 dir=0.0 type=Bot3
CreateObject pos=
316
; 
238
 dir=0.0 type=Bot3
CreateObject pos=
316
; 
238
 dir=0.0 type=Bot3
CreateObject pos=
248
; 
282
 dir=0.0 type=Bot3
CreateObject pos=
248
; 
282
 dir=0.0 type=Bot3
CreateObject pos=
247
; 
283
 dir=0.0 type=Bot3
CreateObject pos=
237
; 
290
 dir=0.0 type=Bot3
CreateObject pos=
219
; 
301
 dir=0.0 type=Bot3
CreateObject pos=
193
; 
319
 dir=0.0 type=Bot3
CreateObject pos=
176
; 
326
 dir=0.0 type=Bot3
CreateObject pos=
159
; 
328
 dir=0.0 type=Bot3
CreateObject pos=
74
; 
202
 dir=0.0 type=Bot3
CreateObject pos=
62
; 
177
 dir=0.0 type=Bot3
CreateObject pos=
47
; 
150
 dir=0.0 type=Bot3
CreateObject pos=
33
; 
126
 dir=0.0 type=Bot3
CreateObject pos=
23
; 
104
 dir=0.0 type=Bot3
CreateObject pos=
20
; 
85
 dir=0.0 type=Bot3
CreateObject pos=
23
; 
73
 dir=0.0 type=Bot3
CreateObject pos=
36
; 
62
 dir=0.0 type=Bot3
CreateObject pos=
61
; 
52
 dir=0.0 type=Bot3
CreateObject pos=
99
; 
44
 dir=0.0 type=Bot3
CreateObject pos=
138
; 
37
 dir=0.0 type=Bot3
CreateObject pos=
163
; 
31
 dir=0.0 type=Bot3
CreateObject pos=
183
; 
31
 dir=0.0 type=Bot3
CreateObject pos=
226
; 
43
 dir=0.0 type=Bot3
CreateObject pos=
270
; 
65
 dir=0.0 type=Bot3
CreateObject pos=
320
; 
95
 dir=0.0 type=Bot3
CreateObject pos=
377
; 
126
 dir=0.0 type=Bot3
CreateObject pos=
451
; 
157
 dir=0.0 type=Bot3
CreateObject pos=
514
; 
183
 dir=0.0 type=Bot3
CreateObject pos=
549
; 
203
 dir=0.0 type=Bot3
CreateObject pos=
562
; 
223
 dir=0.0 type=Bot3
CreateObject pos=
565
; 
252
 dir=0.0 type=Bot3
CreateObject pos=
562
; 
286
 dir=0.0 type=Bot3
CreateObject pos=
542
; 
326
 dir=0.0 type=Bot3
CreateObject pos=
489
; 
381
 dir=0.0 type=Bot3
CreateObject pos=
414
; 
431
 dir=0.0 type=Bot3
CreateObject pos=
340
; 
469
 dir=0.0 type=Bot3
CreateObject pos=
300
; 
488
 dir=0.0 type=Bot3
CreateObject pos=
293
; 
492
 dir=0.0 type=Bot3
CreateObject pos=
300
; 
486
 dir=0.0 type=Bot3
CreateObject pos=
330
; 
462
 dir=0.0 type=Bot3
CreateObject pos=
374
; 
413
 dir=0.0 type=Bot3
CreateObject pos=
434
; 
337
 dir=0.0 type=Bot3
CreateObject pos=
511
; 
240
 dir=0.0 type=Bot3
CreateObject pos=
573
; 
140
 dir=0.0 type=Bot3
CreateObject pos=
592
; 
58
 dir=0.0 type=Bot3
CreateObject pos=
560
; 
3
 dir=0.0 type=Bot3
CreateObject pos=
487
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
487
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
9
 dir=0.0 type=Bot3
CreateObject pos=
288
; 
49
 dir=0.0 type=Bot3
CreateObject pos=
248
; 
83
 dir=0.0 type=Bot3
CreateObject pos=
240
; 
93
 dir=0.0 type=Bot3
CreateObject pos=
249
; 
89
 dir=0.0 type=Bot3
CreateObject pos=
313
; 
56
 dir=0.0 type=Bot3
CreateObject pos=
516
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
672
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
672
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
672
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
672
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
672
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
632
; 
279
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
337
 dir=0.0 type=Bot3
CreateObject pos=
368
; 
368
 dir=0.0 type=Bot3
CreateObject pos=
349
; 
353
 dir=0.0 type=Bot3
CreateObject pos=
366
; 
299
 dir=0.0 type=Bot3
CreateObject pos=
436
; 
220
 dir=0.0 type=Bot3
CreateObject pos=
552
; 
129
 dir=0.0 type=Bot3
CreateObject pos=
657
; 
49
 dir=0.0 type=Bot3
CreateObject pos=
714
; 
9
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
16
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
16
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
16
 dir=0.0 type=Bot3
CreateObject pos=
700
; 
363
 dir=0.0 type=Bot3
CreateObject pos=
664
; 
469
 dir=0.0 type=Bot3
CreateObject pos=
615
; 
516
 dir=0.0 type=Bot3
CreateObject pos=
557
; 
510
 dir=0.0 type=Bot3
CreateObject pos=
498
; 
457
 dir=0.0 type=Bot3
CreateObject pos=
461
; 
368
 dir=0.0 type=Bot3
CreateObject pos=
472
; 
219
 dir=0.0 type=Bot3
CreateObject pos=
538
; 
141
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
544
; 
574
 dir=0.0 type=Bot3
CreateObject pos=
438
; 
543
 dir=0.0 type=Bot3
CreateObject pos=
409
; 
506
 dir=0.0 type=Bot3
CreateObject pos=
431
; 
479
 dir=0.0 type=Bot3
CreateObject pos=
518
; 
472
 dir=0.0 type=Bot3
CreateObject pos=
655
; 
488
 dir=0.0 type=Bot3
CreateObject pos=
655
; 
488
 dir=0.0 type=Bot3
CreateObject pos=
655
; 
488
 dir=0.0 type=Bot3
CreateObject pos=
607
; 
621
 dir=0.0 type=Bot3
CreateObject pos=
467
; 
657
 dir=0.0 type=Bot3
CreateObject pos=
395
; 
676
 dir=0.0 type=Bot3
CreateObject pos=
387
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
425
; 
656
 dir=0.0 type=Bot3
CreateObject pos=
516
; 
635
 dir=0.0 type=Bot3
CreateObject pos=
608
; 
641
 dir=0.0 type=Bot3
CreateObject pos=
647
; 
663
 dir=0.0 type=Bot3
CreateObject pos=
617
; 
686
 dir=0.0 type=Bot3
CreateObject pos=
531
; 
690
 dir=0.0 type=Bot3
CreateObject pos=
427
; 
692
 dir=0.0 type=Bot3
CreateObject pos=
374
; 
693
 dir=0.0 type=Bot3
CreateObject pos=
370
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
413
; 
668
 dir=0.0 type=Bot3
CreateObject pos=
487
; 
652
 dir=0.0 type=Bot3
CreateObject pos=
567
; 
652
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
228
; 
690
 dir=0.0 type=Bot3
CreateObject pos=
219
; 
662
 dir=0.0 type=Bot3
CreateObject pos=
274
; 
640
 dir=0.0 type=Bot3
CreateObject pos=
406
; 
638
 dir=0.0 type=Bot3
CreateObject pos=
550
; 
648
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
35
; 
690
 dir=0.0 type=Bot3
CreateObject pos=
90
; 
637
 dir=0.0 type=Bot3
CreateObject pos=
211
; 
584
 dir=0.0 type=Bot3
CreateObject pos=
376
; 
554
 dir=0.0 type=Bot3
CreateObject pos=
496
; 
551
 dir=0.0 type=Bot3
CreateObject pos=
533
; 
566
 dir=0.0 type=Bot3
CreateObject pos=
500
; 
611
 dir=0.0 type=Bot3
CreateObject pos=
323
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
323
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
323
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
323
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
323
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
172
; 
681
 dir=0.0 type=Bot3
CreateObject pos=
315
; 
646
 dir=0.0 type=Bot3
CreateObject pos=
473
; 
616
 dir=0.0 type=Bot3
CreateObject pos=
498
; 
623
 dir=0.0 type=Bot3
CreateObject pos=
452
; 
653
 dir=0.0 type=Bot3
CreateObject pos=
452
; 
653
 dir=0.0 type=Bot3
CreateObject pos=
452
; 
653
 dir=0.0 type=Bot3
CreateObject pos=
452
; 
653
 dir=0.0 type=Bot3
CreateObject pos=
452
; 
653
 dir=0.0 type=Bot3
CreateObject pos=
163
; 
667
 dir=0.0 type=Bot3
CreateObject pos=
277
; 
602
 dir=0.0 type=Bot3
CreateObject pos=
368
; 
593
 dir=0.0 type=Bot3
CreateObject pos=
415
; 
616
 dir=0.0 type=Bot3
CreateObject pos=
405
; 
666
 dir=0.0 type=Bot3
CreateObject pos=
405
; 
666
 dir=0.0 type=Bot3
CreateObject pos=
405
; 
666
 dir=0.0 type=Bot3
CreateObject pos=
405
; 
666
 dir=0.0 type=Bot3
CreateObject pos=
60
; 
634
 dir=0.0 type=Bot3
CreateObject pos=
133
; 
486
 dir=0.0 type=Bot3
CreateObject pos=
241
; 
405
 dir=0.0 type=Bot3
CreateObject pos=
329
; 
394
 dir=0.0 type=Bot3
CreateObject pos=
365
; 
455
 dir=0.0 type=Bot3
CreateObject pos=
337
; 
560
 dir=0.0 type=Bot3
CreateObject pos=
231
; 
655
 dir=0.0 type=Bot3
CreateObject pos=
94
; 
681
 dir=0.0 type=Bot3
CreateObject pos=
15
; 
638
 dir=0.0 type=Bot3
CreateObject pos=
36
; 
507
 dir=0.0 type=Bot3
CreateObject pos=
151
; 
412
 dir=0.0 type=Bot3
CreateObject pos=
328
; 
368
 dir=0.0 type=Bot3
CreateObject pos=
382
; 
392
 dir=0.0 type=Bot3
CreateObject pos=
408
; 
479
 dir=0.0 type=Bot3
CreateObject pos=
353
; 
591
 dir=0.0 type=Bot3
CreateObject pos=
222
; 
670
 dir=0.0 type=Bot3
CreateObject pos=
97
; 
671
 dir=0.0 type=Bot3
CreateObject pos=
38
; 
596
 dir=0.0 type=Bot3
CreateObject pos=
67
; 
416
 dir=0.0 type=Bot3
CreateObject pos=
166
; 
304
 dir=0.0 type=Bot3
CreateObject pos=
282
; 
261
 dir=0.0 type=Bot3
CreateObject pos=
374
; 
290
 dir=0.0 type=Bot3
CreateObject pos=
404
; 
376
 dir=0.0 type=Bot3
CreateObject pos=
359
; 
474
 dir=0.0 type=Bot3
CreateObject pos=
246
; 
508
 dir=0.0 type=Bot3
CreateObject pos=
111
; 
432
 dir=0.0 type=Bot3
CreateObject pos=
84
; 
324
 dir=0.0 type=Bot3
CreateObject pos=
100
; 
247
 dir=0.0 type=Bot3
CreateObject pos=
136
; 
244
 dir=0.0 type=Bot3
CreateObject pos=
213
; 
312
 dir=0.0 type=Bot3
CreateObject pos=
290
; 
421
 dir=0.0 type=Bot3
CreateObject pos=
301
; 
526
 dir=0.0 type=Bot3
CreateObject pos=
232
; 
590
 dir=0.0 type=Bot3
CreateObject pos=
95
; 
588
 dir=0.0 type=Bot3
CreateObject pos=
44
; 
528
 dir=0.0 type=Bot3
CreateObject pos=
56
; 
438
 dir=0.0 type=Bot3
CreateObject pos=
143
; 
364
 dir=0.0 type=Bot3
CreateObject pos=
238
; 
348
 dir=0.0 type=Bot3
CreateObject pos=
295
; 
404
 dir=0.0 type=Bot3
CreateObject pos=
308
; 
508
 dir=0.0 type=Bot3
CreateObject pos=
256
; 
600
 dir=0.0 type=Bot3
CreateObject pos=
139
; 
621
 dir=0.0 type=Bot3
CreateObject pos=
77
; 
562
 dir=0.0 type=Bot3
CreateObject pos=
53
; 
450
 dir=0.0 type=Bot3
CreateObject pos=
118
; 
318
 dir=0.0 type=Bot3
CreateObject pos=
274
; 
242
 dir=0.0 type=Bot3
CreateObject pos=
415
; 
259
 dir=0.0 type=Bot3
CreateObject pos=
447
; 
346
 dir=0.0 type=Bot3
CreateObject pos=
360
; 
447
 dir=0.0 type=Bot3
CreateObject pos=
125
; 
518
 dir=0.0 type=Bot3
CreateObject pos=
13
; 
518
 dir=0.0 type=Bot3
CreateObject pos=
13
; 
518
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
362
 dir=0.0 type=Bot3
CreateObject pos=
131
; 
311
 dir=0.0 type=Bot3
CreateObject pos=
304
; 
339
 dir=0.0 type=Bot3
CreateObject pos=
421
; 
435
 dir=0.0 type=Bot3
CreateObject pos=
441
; 
542
 dir=0.0 type=Bot3
CreateObject pos=
310
; 
609
 dir=0.0 type=Bot3
CreateObject pos=
145
; 
578
 dir=0.0 type=Bot3
CreateObject pos=
32
; 
499
 dir=0.0 type=Bot3
CreateObject pos=
6
; 
402
 dir=0.0 type=Bot3
CreateObject pos=
68
; 
324
 dir=0.0 type=Bot3
CreateObject pos=
188
; 
311
 dir=0.0 type=Bot3
CreateObject pos=
320
; 
374
 dir=0.0 type=Bot3
CreateObject pos=
397
; 
485
 dir=0.0 type=Bot3
CreateObject pos=
369
; 
612
 dir=0.0 type=Bot3
CreateObject pos=
285
; 
614
 dir=0.0 type=Bot3
CreateObject pos=
192
; 
523
 dir=0.0 type=Bot3
CreateObject pos=
145
; 
365
 dir=0.0 type=Bot3
CreateObject pos=
176
; 
229
 dir=0.0 type=Bot3
CreateObject pos=
258
; 
176
 dir=0.0 type=Bot3
CreateObject pos=
344
; 
219
 dir=0.0 type=Bot3
CreateObject pos=
388
; 
345
 dir=0.0 type=Bot3
CreateObject pos=
339
; 
539
 dir=0.0 type=Bot3
CreateObject pos=
269
; 
604
 dir=0.0 type=Bot3
CreateObject pos=
242
; 
580
 dir=0.0 type=Bot3
CreateObject pos=
254
; 
482
 dir=0.0 type=Bot3
CreateObject pos=
336
; 
369
 dir=0.0 type=Bot3
CreateObject pos=
460
; 
311
 dir=0.0 type=Bot3
CreateObject pos=
530
; 
332
 dir=0.0 type=Bot3
CreateObject pos=
530
; 
419
 dir=0.0 type=Bot3
CreateObject pos=
396
; 
548
 dir=0.0 type=Bot3
CreateObject pos=
253
; 
569
 dir=0.0 type=Bot3
CreateObject pos=
189
; 
521
 dir=0.0 type=Bot3
CreateObject pos=
201
; 
417
 dir=0.0 type=Bot3
CreateObject pos=
313
; 
299
 dir=0.0 type=Bot3
CreateObject pos=
486
; 
235
 dir=0.0 type=Bot3
CreateObject pos=
617
; 
256
 dir=0.0 type=Bot3
CreateObject pos=
661
; 
346
 dir=0.0 type=Bot3
CreateObject pos=
572
; 
500
 dir=0.0 type=Bot3
CreateObject pos=
410
; 
561
 dir=0.0 type=Bot3
CreateObject pos=
247
; 
523
 dir=0.0 type=Bot3
CreateObject pos=
161
; 
413
 dir=0.0 type=Bot3
CreateObject pos=
169
; 
275
 dir=0.0 type=Bot3
CreateObject pos=
275
; 
193
 dir=0.0 type=Bot3
CreateObject pos=
445
; 
195
 dir=0.0 type=Bot3
CreateObject pos=
588
; 
264
 dir=0.0 type=Bot3
CreateObject pos=
634
; 
361
 dir=0.0 type=Bot3
CreateObject pos=
512
; 
458
 dir=0.0 type=Bot3
CreateObject pos=
335
; 
447
 dir=0.0 type=Bot3
CreateObject pos=
180
; 
363
 dir=0.0 type=Bot3
CreateObject pos=
117
; 
257
 dir=0.0 type=Bot3
CreateObject pos=
144
; 
206
 dir=0.0 type=Bot3
CreateObject pos=
245
; 
229
 dir=0.0 type=Bot3
CreateObject pos=
347
; 
324
 dir=0.0 type=Bot3
CreateObject pos=
387
; 
434
 dir=0.0 type=Bot3
CreateObject pos=
338
; 
500
 dir=0.0 type=Bot3
CreateObject pos=
231
; 
463
 dir=0.0 type=Bot3
CreateObject pos=
133
; 
365
 dir=0.0 type=Bot3
CreateObject pos=
96
; 
233
 dir=0.0 type=Bot3
CreateObject pos=
119
; 
141
 dir=0.0 type=Bot3
CreateObject pos=
202
; 
125
 dir=0.0 type=Bot3
CreateObject pos=
312
; 
171
 dir=0.0 type=Bot3
CreateObject pos=
405
; 
283
 dir=0.0 type=Bot3
CreateObject pos=
410
; 
373
 dir=0.0 type=Bot3
CreateObject pos=
332
; 
431
 dir=0.0 type=Bot3
CreateObject pos=
210
; 
440
 dir=0.0 type=Bot3
CreateObject pos=
133
; 
388
 dir=0.0 type=Bot3
CreateObject pos=
111
; 
287
 dir=0.0 type=Bot3
CreateObject pos=
176
; 
187
 dir=0.0 type=Bot3
CreateObject pos=
307
; 
149
 dir=0.0 type=Bot3
CreateObject pos=
451
; 
244
 dir=0.0 type=Bot3
CreateObject pos=
456
; 
361
 dir=0.0 type=Bot3
CreateObject pos=
357
; 
450
 dir=0.0 type=Bot3
CreateObject pos=
211
; 
468
 dir=0.0 type=Bot3
CreateObject pos=
120
; 
428
 dir=0.0 type=Bot3
CreateObject pos=
90
; 
333
 dir=0.0 type=Bot3
CreateObject pos=
134
; 
220
 dir=0.0 type=Bot3
CreateObject pos=
252
; 
143
 dir=0.0 type=Bot3
CreateObject pos=
464
; 
174
 dir=0.0 type=Bot3
CreateObject pos=
557
; 
280
 dir=0.0 type=Bot3
CreateObject pos=
556
; 
395
 dir=0.0 type=Bot3
CreateObject pos=
471
; 
470
 dir=0.0 type=Bot3
CreateObject pos=
356
; 
471
 dir=0.0 type=Bot3
CreateObject pos=
256
; 
413
 dir=0.0 type=Bot3
CreateObject pos=
209
; 
315
 dir=0.0 type=Bot3
CreateObject pos=
237
; 
199
 dir=0.0 type=Bot3
CreateObject pos=
360
; 
110
 dir=0.0 type=Bot3
CreateObject pos=
598
; 
84
 dir=0.0 type=Bot3
CreateObject pos=
718
; 
148
 dir=0.0 type=Bot3
CreateObject pos=
718
; 
148
 dir=0.0 type=Bot3
CreateObject pos=
626
; 
354
 dir=0.0 type=Bot3
CreateObject pos=
454
; 
380
 dir=0.0 type=Bot3
CreateObject pos=
314
; 
328
 dir=0.0 type=Bot3
CreateObject pos=
268
; 
225
 dir=0.0 type=Bot3
CreateObject pos=
342
; 
79
 dir=0.0 type=Bot3
CreateObject pos=
498
; 
17
 dir=0.0 type=Bot3
CreateObject pos=
660
; 
14
 dir=0.0 type=Bot3
CreateObject pos=
660
; 
14
 dir=0.0 type=Bot3
CreateObject pos=
660
; 
14
 dir=0.0 type=Bot3
CreateObject pos=
605
; 
275
 dir=0.0 type=Bot3
CreateObject pos=
395
; 
310
 dir=0.0 type=Bot3
CreateObject pos=
206
; 
278
 dir=0.0 type=Bot3
CreateObject pos=
98
; 
160
 dir=0.0 type=Bot3
CreateObject pos=
116
; 
73
 dir=0.0 type=Bot3
CreateObject pos=
224
; 
29
 dir=0.0 type=Bot3
CreateObject pos=
377
; 
50
 dir=0.0 type=Bot3
CreateObject pos=
484
; 
113
 dir=0.0 type=Bot3
CreateObject pos=
507
; 
201
 dir=0.0 type=Bot3
CreateObject pos=
433
; 
276
 dir=0.0 type=Bot3
CreateObject pos=
275
; 
305
 dir=0.0 type=Bot3
CreateObject pos=
81
; 
269
 dir=0.0 type=Bot3
CreateObject pos=
38
; 
186
 dir=0.0 type=Bot3
CreateObject pos=
85
; 
94
 dir=0.0 type=Bot3
CreateObject pos=
195
; 
45
 dir=0.0 type=Bot3
CreateObject pos=
291
; 
66
 dir=0.0 type=Bot3
CreateObject pos=
311
; 
150
 dir=0.0 type=Bot3
CreateObject pos=
236
; 
250
 dir=0.0 type=Bot3
CreateObject pos=
98
; 
317
 dir=0.0 type=Bot3
CreateObject pos=
-7
; 
321
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
272
 dir=0.0 type=Bot3
CreateObject pos=
20
; 
177
 dir=0.0 type=Bot3
CreateObject pos=
116
; 
84
 dir=0.0 type=Bot3
CreateObject pos=
246
; 
36
 dir=0.0 type=Bot3
CreateObject pos=
338
; 
48
 dir=0.0 type=Bot3
CreateObject pos=
365
; 
111
 dir=0.0 type=Bot3
CreateObject pos=
307
; 
195
 dir=0.0 type=Bot3
CreateObject pos=
164
; 
238
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
188
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
188
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
188
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
188
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
188
 dir=0.0 type=Bot3
CreateObject pos=
393
; 
24
 dir=0.0 type=Bot3
CreateObject pos=
425
; 
98
 dir=0.0 type=Bot3
CreateObject pos=
325
; 
141
 dir=0.0 type=Bot3
CreateObject pos=
165
; 
91
 dir=0.0 type=Bot3
CreateObject pos=
10
; 
-6
 dir=0.0 type=Bot3
CreateObject pos=
10
; 
-6
 dir=0.0 type=Bot3
CreateObject pos=
10
; 
-6
 dir=0.0 type=Bot3
CreateObject pos=
6
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
151
; 
1
 dir=0.0 type=Bot3
CreateObject pos=
271
; 
83
 dir=0.0 type=Bot3
CreateObject pos=
304
; 
177
 dir=0.0 type=Bot3
CreateObject pos=
207
; 
244
 dir=0.0 type=Bot3
CreateObject pos=
62
; 
216
 dir=0.0 type=Bot3
CreateObject pos=
62
; 
216
 dir=0.0 type=Bot3
CreateObject pos=
62
; 
216
 dir=0.0 type=Bot3
CreateObject pos=
-11
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
169
; 
-12
 dir=0.0 type=Bot3
CreateObject pos=
397
; 
67
 dir=0.0 type=Bot3
CreateObject pos=
645
; 
219
 dir=0.0 type=Bot3
CreateObject pos=
714
; 
267
 dir=0.0 type=Bot3
CreateObject pos=
694
; 
259
 dir=0.0 type=Bot3
CreateObject pos=
562
; 
208
 dir=0.0 type=Bot3
CreateObject pos=
357
; 
147
 dir=0.0 type=Bot3
CreateObject pos=
201
; 
98
 dir=0.0 type=Bot3
CreateObject pos=
163
; 
81
 dir=0.0 type=Bot3
CreateObject pos=
217
; 
94
 dir=0.0 type=Bot3
CreateObject pos=
433
; 
162
 dir=0.0 type=Bot3
CreateObject pos=
608
; 
222
 dir=0.0 type=Bot3
CreateObject pos=
688
; 
273
 dir=0.0 type=Bot3
CreateObject pos=
676
; 
290
 dir=0.0 type=Bot3
CreateObject pos=
567
; 
266
 dir=0.0 type=Bot3
CreateObject pos=
396
; 
209
 dir=0.0 type=Bot3
CreateObject pos=
270
; 
150
 dir=0.0 type=Bot3
CreateObject pos=
243
; 
90
 dir=0.0 type=Bot3
CreateObject pos=
384
; 
41
 dir=0.0 type=Bot3
CreateObject pos=
605
; 
37
 dir=0.0 type=Bot3
CreateObject pos=
605
; 
37
 dir=0.0 type=Bot3
CreateObject pos=
605
; 
37
 dir=0.0 type=Bot3
CreateObject pos=
605
; 
37
 dir=0.0 type=Bot3
CreateObject pos=
584
; 
399
 dir=0.0 type=Bot3
CreateObject pos=
433
; 
426
 dir=0.0 type=Bot3
CreateObject pos=
381
; 
381
 dir=0.0 type=Bot3
CreateObject pos=
435
; 
253
 dir=0.0 type=Bot3
CreateObject pos=
567
; 
179
 dir=0.0 type=Bot3
CreateObject pos=
706
; 
179
 dir=0.0 type=Bot3
CreateObject pos=
706
; 
179
 dir=0.0 type=Bot3
CreateObject pos=
706
; 
179
 dir=0.0 type=Bot3
CreateObject pos=
706
; 
179
 dir=0.0 type=Bot3
CreateObject pos=
641
; 
455
 dir=0.0 type=Bot3
CreateObject pos=
542
; 
445
 dir=0.0 type=Bot3
CreateObject pos=
461
; 
391
 dir=0.0 type=Bot3
CreateObject pos=
459
; 
355
 dir=0.0 type=Bot3
CreateObject pos=
510
; 
337
 dir=0.0 type=Bot3
CreateObject pos=
608
; 
347
 dir=0.0 type=Bot3
CreateObject pos=
708
; 
389
 dir=0.0 type=Bot3
CreateObject pos=
708
; 
389
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
492
 dir=0.0 type=Bot3
CreateObject pos=
641
; 
509
 dir=0.0 type=Bot3
CreateObject pos=
516
; 
484
 dir=0.0 type=Bot3
CreateObject pos=
477
; 
457
 dir=0.0 type=Bot3
CreateObject pos=
473
; 
441
 dir=0.0 type=Bot3
CreateObject pos=
515
; 
457
 dir=0.0 type=Bot3
CreateObject pos=
603
; 
521
 dir=0.0 type=Bot3
CreateObject pos=
661
; 
585
 dir=0.0 type=Bot3
CreateObject pos=
665
; 
616
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
610
 dir=0.0 type=Bot3
CreateObject pos=
481
; 
550
 dir=0.0 type=Bot3
CreateObject pos=
421
; 
495
 dir=0.0 type=Bot3
CreateObject pos=
415
; 
449
 dir=0.0 type=Bot3
CreateObject pos=
470
; 
438
 dir=0.0 type=Bot3
CreateObject pos=
565
; 
488
 dir=0.0 type=Bot3
CreateObject pos=
630
; 
587
 dir=0.0 type=Bot3
CreateObject pos=
620
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
620
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
620
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
313
; 
684
 dir=0.0 type=Bot3
CreateObject pos=
291
; 
620
 dir=0.0 type=Bot3
CreateObject pos=
357
; 
552
 dir=0.0 type=Bot3
CreateObject pos=
513
; 
515
 dir=0.0 type=Bot3
CreateObject pos=
676
; 
532
 dir=0.0 type=Bot3
CreateObject pos=
676
; 
532
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
669
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
669
 dir=0.0 type=Bot3
CreateObject pos=
325
; 
670
 dir=0.0 type=Bot3
CreateObject pos=
239
; 
598
 dir=0.0 type=Bot3
CreateObject pos=
247
; 
509
 dir=0.0 type=Bot3


This should be like this.

CreateObject pos=414; 262 dir=0.0 type=Bot3

If you say I should use Seek then you'll have to explain the parameters to me.I don't understand the manual on that part.
#23
Is it possible to write to a file without these char  surrounding these numbers.

CreateObject pos=    354    ;     382     dir=0.0 type=Bot3 


I'm fine with  being at the end but the others are a problem.
#24
Thankyou!
#25
Can you write to the file in installdir?
#26
Where is the savegamedir and where is the Installdir and appdata dir?
#27
Ok so I never really figured this out and when I tried it recently I couldn't figure out how to say which file to open.I would like to be able to open from game-windows directory if possible but I see your not able to write to the file and only able to read it.
Code: ags

{
	if(mouse.IsButtonDown(eMouseLeft))
	{
		if(mouse.Mode==eModemcar)
		{
			car=Overlay.CreateRoomGraphical(mouse.x, mouse.y, 2);
		}	
		if(mouse.Mode==eModemblupi)
		{
			other[othernum]=Overlay.CreateRoomGraphical(mouse.x, mouse.y, 4);
			File* newfile=File.Open("scene031",eFileWrite);
			
			newfile.WriteString("TESTING TESTING TESTING");
			newfile.Close();
			
		}	
	}	
}

Where should I place the txt file?
#28
QuoteIf this error happens during compilation, "Undefined token" means the script does not see the function. The usual case is that your module with function "overplay" is located below the module that tries to use it ("fishtank") in the list of modules. In AGS script modules can only see functions declared above them.
QuoteAbout the Beta, I think we'll have another update soon, but because we haven't found any more critical bugs, and there are no more game features planned, we're taking time just doing less important fixes and improving some things.
Oh ok.Thanks for letting me know. :)
#29
I've been encountering an error" Undefined token overplay".Overplay is a function and is imported in overplay.ash but when I call it sometimes it works and sometimes it doesn't.I don't think theres anything wrong with how I placed the script although I could be wrong.I also encountered this same error for another function a few days ago.After a while it seemed to just fix itself with no changes done to it.
heres the .scm scripts
https://www.filemail.com/d/khuayqkknjpyaol
#30
Sorry. I didn't realize (roll). Nevermind.
#31
As the title says I'm asking if you could please add Overlay.GetatScreenXY if possible.
#32
I want to be able to check if the mouse is over any overlay without using  objects,hotspots or regions.Is it possible to check accurately without having to tell the graphics dimensions?Can getlocationtype be used to check for an overlay at mouse position?
#33
Thanks!

I have another problem now.This script is meant to animate an overlay but it's not  changing  to the next sprites.What is the reason for its not changing to the next sprite?

Certain integers and an overlay are declared global in "global variables".
globover2=overlay
backwardsnum=integer
somethingnum=integer
othernum=integer
backwardsnum2=integer
somethingnum2=integer
othernum2=integer
Code: ags

int timer;
int startanimation;
int playagain;
function overplay(Overlay* globover, int xpos, int ypos, int something, int other, bool backwards)
{
  globover=Overlay.CreateGraphical(xpos, ypos, 26);
  startanimation=1;
  globover2=globover;
  backwardsnum=backwards;
  somethingnum=something;
  othernum=other;
  playagain=0;
}       
function overplayagain(int something2, int other2,bool backwards2)
{
  backwardsnum2=backwards2;
  somethingnum2=something2;
  othernum2=other2;
  startanimation=1;
  playagain=1;
}       
function Repeatedly_execute_always()
{
  if(startanimation==1)
  {
    timer+=1;
  }       
  if(timer>40)
  {
    if(playagain==1)
    {
      if(backwardsnum2==true)
      {
          
        if(somethingnum2>othernum2)
        {
          somethingnum2-=1;
        }
      }       
      if(backwardsnum2==false)
      {
        if(somethingnum2<othernum2)
        {
          somethingnum2+=1;
        }
      }
      globover2.Graphic=somethingnum2;
    }
    if(playagain==0)
    {
      if(backwardsnum==true)
      {
        if(somethingnum>othernum)
        {
          somethingnum-=1;
        }
      }       
      if(backwardsnum==false)
      {
        if(somethingnum<othernum)
        {
          somethingnum+=1;
        }
      }     
      globover2.Graphic=somethingnum;
    }
    timer=0;
  }              
        
}    

EDIT:
Finally after days of strenuous searching I finally found the reason for this not animating.Reapeatedly execute was not actually repeately execute.It was making it a custom function.Now that that's fixed it animates flawlessly.
DOUBLE EDIT:

How do I change this script to animate an unknown number of multiple overlays?
#34
I was interested with your idea so I thought i'd try it.I didn't get it to work the way I was doing it but if you would like to try to get what I have to work here it is.
Code: ags

int pixwide;
int pixheight;
int coverpixelplaced;
function room_AfterFadeIn()
{   
	
}

function room_RepExec()
{
	player.Baseline=-2000;
	pixwide = Random(Game.SpriteWidth[2000]);
	pixheight=Random(Game.SpriteHeight[2000]);
	DynamicSprite* draw;
	if(coverpixelplaced==Game.SpriteWidth[2000]||Game.SpriteHeight[2000])
	{
		//draw.Delete();
		//way to make character invisible;
	}	
	else
	{
		draw=DynamicSprite.CreateFromBackground(0,player.x+pixwide, player.y+pixheight, 1,1 );
		coverpixelplaced+=1;
	}
}
#35
I keep getting an error "something has a parse error".Something needs to be accessible by all of this script but I don't know how to put the parameter in the function and have it global.
Code: ags

int timer;
int startanimation;
int playagain;
function overplay(int xpos, int ypos,int something, int other,RepeatStyle)
{
	flap=Overlay.CreateGraphical(xpos, ypos, sprite);
	startanimation=1;
	flap.Graphic=something;
}	
function overplayagain(int something2, int other2,RepeatStyle)
{
	startanimation=1;
	playagain=1;
}	
function Repeatedly_execute_always()
{
	if(startanimation==1)
	{
		timer =1;
	}	
	if(timer>=40)
	{
		timer=0;
		startanimation=0;
		if(playagain==1)
		{
			flap.Graphic=something2;
		}
		if(playagain==0)
		{
			flap.Graphic=something;
		}	
	}	
	if(backwards==true)
	{
		
		if(something>other)
		{
			something-=1;
		}
	}	
	if(backwards==false)
	{
		if(something<other)
		{
			something =1;
		}
	}	
		if(backwards==true)
	{
		
		if(something2>other2)
		{
			something2-=1;
		}
	}	
	if(backwards==false)
	{
		if(something2<other2)
		{
			something2 =1;
		}
	}	
	
}	

Code: ags

import function overplay(int xpos, int ypos,something, int other,direction param);

import function overplayagain(something2, int other2,direction param);

#36
I have a question that i'm sure was answered but I can't find it so i'll ask it again.How can I add a number to the name of something.Such as having an overlay that is made every time a function is called and the name of the new overlay is called myoverlay(number).To add a number to the overlays name every time its made so that it can be recalled through script without changing the previous one.I'm not asking how to change it every time its made.I'm asking how to add a number to the end of its name.
#37
Is there another way than Wait(); that doesn't block.So far what I use is a integer adding up and whenever the integer reaches a number it runs certain script.This way works but you have to place the script in an if statement.I'm looking for something that merely stops reading of the script for a set time without blocking the already running scripts such as animations and mouse cursor.
#38
Is there a way to easily delay reading script without blocking?
#39
Does drawing dynamic sprites have a baseline or z-order?
#40
Is there a plausible way to do costumes in AGS that are like extra layers/limbs?
SMF spam blocked by CleanTalk