How do I RANDOMLY select image point to create object?

Get help using Construct 2

Post » Sat Mar 21, 2015 2:38 pm

I have an event that says:

system - every 3 seconds: create object from image point 1 of another object of both X & Y. Here is the command:

Snowman1.ImagePointX(1)
Snowman1.ImagePointY(1)

(screenshot attached)


I'd like the game to instead RANDOMLY select different image points to create the object from. Any idea how to do this?

I was thinking maybe it is something like:
Snowman1.ImagePointX(1,2) <-- telling it to pick 1 or 2 of the image points but that doesn't work. :(

let me try and explain what I am attempting to do: I have a snowman. The snowman has two hands. The left hand is image point 1 and the right hand is image point 2. I would like to computer randomly pick either the left hand with the right hand and then throw the ball. The problem is, I seem to be required to pick only one of the image points. Any ideas?



PS: When I try and add the attachment, I get the following error on this forum (just figured I'd mention it):
General Error
SQL ERROR [ mssqlnative ]

SQLSTATE: 22003 code: 8115 message: [Microsoft][SQL Server Native Client 11.0][SQL Server]Arithmetic overflow error converting expression to data type int. SQLSTATE: 01000 code: 3621 message: [Microsoft][SQL Server Native Client 11.0][SQL Server]The statement has been terminated. [3621]

An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
Last edited by puzzele on Sat Mar 21, 2015 2:55 pm, edited 1 time in total.
B
9
S
2
Posts: 111
Reputation: 1,010

Post » Sat Mar 21, 2015 2:54 pm

...............................
Image
B
66
S
24
G
7
Posts: 1,515
Reputation: 11,041


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 38 guests