Login Store
Home Discovery Queue Wishlist Points Shop News Stats
Community
Home Discussions Workshop Market Broadcasts
About Support
Change language
Get the Steam Mobile App
View desktop website
© Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries. Privacy Policy  |  Legal  |  Steam Subscriber Agreement  |  Refunds
STEAM
Link to the Steam Homepage
STORE
Home Discovery Queue Wishlist Points Shop News Stats
COMMUNITY
Home Discussions Workshop Market Broadcasts
About SUPPORT
Install Steam
login  |  language
简体中文 (Simplified Chinese) 繁體中文 (Traditional Chinese) 日本語 (Japanese) 한국어 (Korean) ไทย (Thai) Български (Bulgarian) Čeština (Czech) Dansk (Danish) Deutsch (German) Español - España (Spanish - Spain) Español - Latinoamérica (Spanish - Latin America) Ελληνικά (Greek) Français (French) Italiano (Italian) Bahasa Indonesia (Indonesian) Magyar (Hungarian) Nederlands (Dutch) Norsk (Norwegian) Polski (Polish) Português (Portuguese - Portugal) Português - Brasil (Portuguese - Brazil) Română (Romanian) Русский (Russian) Suomi (Finnish) Svenska (Swedish) Türkçe (Turkish) Tiếng Việt (Vietnamese) Українська (Ukrainian) Report a translation problem
STEAM GROUP
game development help gamedevhelp
Join Group
STEAM GROUP
game development help gamedevhelp
386
MEMBERS
4
IN-GAME
51
ONLINE
Founded
28 May, 2015
Language
English
Overview Discussions Events Members Comments
By: TacoTormentor
Showing 1-1 of 1 entries
In forum "game development help General Discussions"
3
Moving
I don't use GameMaker, but I can tell you right off the bat your randomization isn't going to work. You're generating a number between 1 and 30, inclusive, and only if that random number is larger than 30 will it move towards obj_player. It will never reach that condition. Why not just do

randomnum = irandom_range(1,2) if (randomnum == 1) { move_towards_point(obj_player,obj_player,3.0); } if (randomnum == 2) { move_towards_point(obj_enemy,obj_enemy,3.0); }
Or replace "==" with proper GameMaker syntax if it's not correct. I don't know about the going in a corner part, though.
Showing 1-1 of 1 entries

Discussions Rules and Guidelines
Close

Report this post

REASON
Note: This is ONLY to be used to report spam, advertising, and problematic (harassment, fighting, or rude) posts.
Valve Logo © Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries.
Some geospatial data on this website is provided by geonames.org.
Privacy Policy   |  Legal  |  Steam Subscriber Agreement  |  Cookies
View mobile website